A simple CLI for adding, updating and viewing TODOs in Todoist
- Set an env variable for your Todoist API token (go to settings and integrations)
export TODOIST_TOKEN=1234567890
To build, run cargo build --release
. The executable will live in ./target/release/todoist_helper
- you can move this to somewhere your $PATH includes to run from anywhere
todoist_helper add todo
todoist_helper show todos
todoist_helper complete todo 12345
- When adding a TODO, you can give the content (
-c
) flag to provide contenttodoist_helper add todo -c "My new TODO"
- When showing TODOs, you can add filters with the filters (
-f
) flag, and multiple separated by commas. See Todoist's filter documentation *todoist_helper show todos -f "today"
- When showing TODOs, you can specify the columns you'd like to see as a result with the attribute(s) (
-a
) flagtodoist_helper show todos -a "id,content"
If you have fzf installed, you can use the following to complete a TODO
todoist_helper show todos -a "id,content" | fzf | xargs -I{} todoist_helper complete todo {}
-
- multiple filters doesn't seem to work through the API i.e. (today | overdue). Need to investigate this
You're more than welcome to submit an issue or PR with any bugs or feature suggestions.