nb icon indicating copy to clipboard operation
nb copied to clipboard

Get due date of all todos

Open CrossNox opened this issue 2 years ago • 3 comments

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?

CrossNox avatar Nov 14 '21 19:11 CrossNox

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.

xwmx avatar Nov 14 '21 20:11 xwmx

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.

rhsev avatar Aug 18 '22 14:08 rhsev

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)

cyruseuros avatar May 02 '23 19:05 cyruseuros