nb
nb copied to clipboard
Get due date of all todos
I wrote a small python cli that fetches the due date for each todo in order to print how many are overdue, how many due today and tomorrow. I tried to port it as a nb plugin, but can't get to list open todos.
From the code, I see I can get todos with _list --type todo
, should I just grep for a completion marker and ignore those lines?
Interesting. Yes, that should work. The todo
subcommand uses that approach with sed
([1] [2]). I'll keep this in mind when improving the todo listing options and output.
I am working with nb for a few days. nb is a great discovery! There seems to be no way for the due dates I add to the todos to be listed in the todos list or to query them. At the moment the due dates are still of no use. That could be a useful feature. I would actually prefer it on task level as well instead only for todos. But that probably requires rather too much changeover.
If this does end up getting implemented - start/scheduled and end/deadline per-task dates with recurrence support would be nice. Honestly todo.txt could be ripped off here somewhat (with extra metadata)