Replies: 3 comments 4 replies
-
[UPDATE] I added duration parsing in https://github.com/taskchampion/taskchampion/compare/issue83, so all that's left is timestamp parsing. It might not be that much work, to be honest. I may just decide that |
Beta Was this translation helpful? Give feedback.
-
So I suppose there is a few "date" things:
For 1, iso8601 seems fine for now - I imagine we might want to allow these to be configuring into locale-dependent or configurable format in future (e.g For repeat intervals, I'd be inclined to reduce this to as small a set of options as practical. Currently the current list includes biweekly which is ambigious, lots of variations of the same (e.g about 9 variants on "month"), and some niche things (semiannual, seconds, a few holidays). Lots of things to support, lots of things to document, and lots of things for user to learn (plus less chance we can produce good clear error messages) I almost wonder if we can get away with just supporting: every day, every week, every month, every year. Repeats on the same day as the start point of the repeat I don't think we need seconds/minutes/hours, too granular. Most of the others can quite reasonably be done with every n days/weeks/months (e.g "every 2 weeks" instead of "fortnightly" seems fine) Since it's not a calendar application, I'd be inclined to stop there personally.. However if we wanted to be fancy, the next step up would be to allow the tasks to repeat on specific days (e.g every second Monday), at which point I think the macOS Calendar "Repeat" option is a good reference:
Would need more thought, but i think this can be expressed with a concise CLI syntax, and also within GUI's (e.g web interface or an phone app), something like:
(maybe makes sense to allow both This also maps to a reasonable number of dropdowns for someone implementing a GUI widget This would be a pretty rigid pattern, so we could give quite specific errors if user inputs something incorrect However this does become somewhat of a rabbit-hole.. since the next step would be a way to stop repetition after n occurrences.. or after a specific date, or.. |
Beta Was this translation helpful? Give feedback.
-
Half-formed thought, would it make sense to allow repeating arbitrary commands, rather than tasks?! Probably makes more sense in config rather than CLI (since ordering matters), but:
So every day, all tasks with the It seems like an interesting idea.. but possibly not a good idea |
Beta Was this translation helpful? Give feedback.
-
Taskwarrior's timestamps and durations are so complex that they require three (1 2 3) pages for their documentation.
Should we try to re-implement that? I expect doing so would involve a lot of typing and a lot of tests. It would also probably uncover some bugs in Taskwarrior where we'd have to decide whether to duplicate or fix the bug. And, there's the minor issue of Taskwarrior allowing a deprecated
rc.dateformat
config which I'm pretty sure we wouldn't want to reproduce.If TC doesn't reproduce those formats exactly, what should it do?
This relates to #83 since waiting involves a timestamp.
Beta Was this translation helpful? Give feedback.
All reactions