Closed obbardc closed 4 years ago
due
already supports none
(and its alias -
):
$ ttdl list
# D P Created Finished Due Subject
-----------------------------------------------
5 2020-07-12 new line
6 no due date
-----------------------------------------------
# the same output for: ttdl list --due -
$ ttdl list --due none
# D P Created Finished Due Subject
-----------------------------------------------
6 no due date
-----------------------------------------------
It should be mentioned in docs - I did not find it. I'll add it
As it works, I'm closing it in favor of #33 that is a broader issue and includes a bullet for document update.
thanks! it works in v0.9.0
With the new syntax, ability to chain none to a due-date range doesn't appear to work correctly:
$ ttdl list --due=none..today
invalid value invalid date 'none' for date range
Yeah, I forgot about none
. Now, I think, we should agree on how none
works in all the cases:
--due=none
(a synonym is --due=-
) - show all todos without a due date--due=none..<date>
: it is a handy way to combine two lists --due=..<date>
and --due=none
in one--due=<date>..none
: similar to 2 but combines --due=<date>..
and --due=none
none
: --due=none..
. To me, it just shows all the todo as if a command omits a range. So this case can be ignored when detected.none
: --due=..none
. To me, it looks like a synonym for --due=none
--due=none..none
: I think it is the same as 5 (just for making a full set)Am I missing anything? Does it look OK?
How would you feel about ttdl accepting none as an argument like
--due none
to show items with no due date?