Added functionality for Todoist.
 
 
Go to file
Hoffelhas d5cda02204 Merge branch 'master' of https://github.com/Hoffelhas/automation-todoist 2020-05-13 21:26:24 +02:00
.gitignore Add Heroku support 2020-03-10 19:55:14 -05:00
LICENSE Add copyright to LICENSE 2015-12-12 14:21:45 +00:00
Procfile Change iteration of tasks 2020-03-22 14:31:48 -05:00
README.md Update README.md 2020-05-13 21:26:21 +02:00
autodoist.py Namechange to autodoist 2020-05-13 21:26:15 +02:00
requirements.txt Update todoist-python to version 8.1.1 2020-03-10 22:00:21 -05:00
setup.py Merge branch 'release/0.5' 2020-03-10 22:27:57 -05:00

README.md

NextAction

A more GTD-like workflow for Todoist.

This program looks for pre-defined tags in every list and parentless task in your Todoist account to automatically add and remove @next_action labels.

The result will be a clear, current and comprehensive list of next actions without the need for further thought.

Uses the Todoist Sync API; note that Todoist Premium is required to function properly, since labels are used.

Requirements

  • Python 3.8
  • todoist-python package.

Activating NextAction

Projects and parentless tasks can be tagged independently from each other to create the required functionality.

Sequential list processing

If a project or task ends with --, the child tasks will be treated as a priority queue and the most important will be labeled @next_action. Importance is determined by order in the list.

Serial task

Parallel list processing

If a project or task name ends with //, the child tasks will be treated as parallel @next_actions. A waterfall processing is applied, where the lowest possible child tasks are labelled.

Parallel task

Parentless tasks

Any parentless task can be be given a type by appending // or -- to the name of the task. This works if there is no list type, and will override a previously defined list type.

See example 1 with a parallel project

See example 2 with a serial project

Executing NextAction

You can run NexAction from any system that supports Python.

Running NextAction

NextAction will read your environment to retrieve your Todoist API key, so to run on a Linux/Mac OSX you can use the following commandline

python nextaction.py -a <API Key>

Additional arguments

Several arguments can be provided, for example to change the default label:

python nextaction.py -l <label>

Or to change the suffix tags:

python nextaction.py --parallel_suffix <tag>
python nextaction.py --serial_suffix <tag>