|
1 | 1 | # ALFRED TODOIST WORKFLOW |
2 | | -Add tasks to your [Todoist](https://todoist.com/ "Todoist") inbox or list upcoming tasks straight from [Alfred](https://www.alfredapp.com "Alfred"). I nicked the idea from [Ruben Schmidtmann](https://github.com/rubenschmidtmann "Ruben Schmidtmann")'s [todoist-alfred-workflow](https://github.com/rubenschmidtmann/todoist-alfred-workflow "todoist-alfred-workflow"), and further expanded on it. It uses Todoist `v7` API. |
| 2 | +Add tasks to your [Todoist](https://todoist.com/ "Todoist") inbox or list upcoming tasks straight from [Alfred](https://www.alfredapp.com "Alfred"). I nicked the idea from [Ruben Schmidtmann](https://github.com/rubenschmidtmann "Ruben Schmidtmann")'s [todoist-alfred-workflow](https://github.com/rubenschmidtmann/todoist-alfred-workflow "todoist-alfred-workflow"), and further expanded on it. It uses Todoist `v7` API. For this workflow to work you need version `3.x` of Alfred. |
3 | 3 |
|
4 | | -The task listing feature relies on javascript (sorry no PHP, perl of ruby foo) which means it needs node.js to function (OSX javascript proved to be clunky for modules and file io). The task adding feature should work on any Mac OSX version. |
| 4 | +The task listing feature, adding project and labels to tasks relies on javascript (sorry no PHP, perl of ruby foo) which means it needs node.js to function (OSX javascript proved to be clunky for modules and file io). The task adding feature should work on any Mac OSX version. |
5 | 5 |
|
6 | 6 | ## Installation |
7 | 7 | [Download](https://github.com/moranje/alfred-workflow-todoist/raw/master/dist/Alfred%20Workflow%20Todoist.alfredworkflow) and import workflow. |
@@ -40,25 +40,42 @@ Uninstall Homebrew (terminal): _ruby -e "$(curl -fsSL https://raw.githubusercont |
40 | 40 |  |
41 | 41 |
|
42 | 42 | **Add a task** |
43 | | -`todo {task}, {date}, {priority}` |
44 | | -Example: _todo Get milk, tomorrow @ 9, 3_ |
| 43 | +`todo {task}, {date}, {project}` _{priority} and {labels} can go anywhere_ |
| 44 | +Example: _todo Get stuff done, tomorrow @ 9, work_ |
| 45 | +Example: _todo Build tree house, tomorrow @ 9, home !!2_ |
| 46 | +Example: _todo Get milk, tomorrow @ 9, home @on_road @5min |
45 | 47 |
|
46 | 48 | ### Task |
47 | 49 | Can be any string as long as there are no comma's in it. Markdown in the string will be parsed, but anything else won't. |
48 | 50 |
|
49 | 51 | ### Date |
50 | 52 | See the [Todoist documentation](https://support.todoist.com/hc/en-us/articles/205325931-Dates-and-Times "Todoist documentation") for supported date formats. |
51 | 53 |
|
| 54 | +### Project* |
| 55 | +Add task to an existing project. If no project is selected the task will be added to your inbox. |
| 56 | + |
| 57 | +### Labels* |
| 58 | +You can now add labels to your tasks. Any string that has a `@` before it will be checked against your existing labels. If it matches (case insensitive) the label will be added. The labels can be added anywhere in the todo command so these are all valid: |
| 59 | +Example: _todo Get stuff done, tomorrow @ 9, work @delayed_ |
| 60 | +Example: _todo Get stuff done , tomorrow @ 9 @delayed, work_ |
| 61 | +Example: _todo Get stuff done @delayed, tomorrow @ 9, work @delayed_ |
| 62 | + |
52 | 63 | ### Priority |
53 | | -A number between 1 and 4, where 1 is the lowest and 4 would be the highest priority. |
| 64 | +A number between 1 and 4, where 1 is the lowest and 4 would be the highest priority. The priority tags can be added anywhere in the todo command so these are all valid: |
| 65 | +Example: _todo Get stuff done, tomorrow @ 9, work !!2_ |
| 66 | +Example: _todo Get stuff done , tomorrow @ 9 !!2, work_ |
| 67 | +Example: _todo Get stuff done !!2, tomorrow @ 9, work_ |
| 68 | + |
| 69 | +*_Relies on node.js to work_ |
54 | 70 |
|
| 71 | +### Hacks |
55 | 72 | Use a comma to separate the parameters, leading or trailing whitespace is ignored. If you wish to change the delimiter with which the parameters (task, date and priority) are separated, you'll need to change a line in the bash script. For instance if you'd like to use ';' as a delimiter, change: |
56 | 73 | ```bash |
57 | | -IFS=',' read -r -a items <<< "{query}" |
| 74 | +IFS=',' read -r -a items <<< "query" |
58 | 75 | ``` |
59 | 76 | to: |
60 | 77 | ```bash |
61 | | -IFS=':' read -r -a items <<< "{query}" |
| 78 | +IFS=':' read -r -a items <<< "query" |
62 | 79 | ``` |
63 | 80 |
|
64 | 81 |  |
|
0 commit comments