File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed
Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 99
1010* Removed ``bin/todo ``. It is no longer requierd, as the entry point generated
1111 by setuptools no longer has performance issues.
12- * Add a new `columns ` option to enable column-aligned output.
12+ * Add a new `columns ` option and configuration entry to enable column-aligned
13+ output.
1314
1415v4.6.0
1516------
Original file line number Diff line number Diff line change 11# A glob expression which matches all directories relevant.
22path = "~/my_calendars/*"
3+ columns = "auto" # never (default) / always / auto
34date_format = "%Y-%m-%d"
45time_format = "%H:%M"
56default_list = "Personal"
Original file line number Diff line number Diff line change @@ -375,6 +375,7 @@ def cli(
375375 elif colour == "never" :
376376 click_ctx .color = False
377377
378+ columns = columns or ctx .config ["columns" ]
378379 if columns == "auto" :
379380 ctx .columns = isinstance (sys .stdout , io .TextIOBase ) and sys .stdout .isatty ()
380381 else :
Original file line number Diff line number Diff line change @@ -82,6 +82,18 @@ class ConfigEntry(NamedTuple):
8282By default todoman will disable colored output if stdout is not a TTY (value
8383``auto``). Set to ``never`` to disable colored output entirely, or ``always``
8484to enable it regardless. This can be overridden with the ``--color`` option.
85+ """ ,
86+ validate_color_config ,
87+ ),
88+ ConfigEntry (
89+ "columns" ,
90+ str ,
91+ "never" ,
92+ """
93+ By default todoman will disable column-aligned output entirely (value
94+ `never`). Set to `auto` to enable column-aligned output if stdout is a TTY,
95+ or `always` to enable it regardless. This can be overridden with the
96+ ``--columns`` option.
8597""" ,
8698 validate_color_config ,
8799 ),
You can’t perform that action at this time.
0 commit comments