Skip to content

Commit

Permalink
version 0.3
Browse files Browse the repository at this point in the history
- Fixed bug (not showing tasks with time due, in the `due today` view
- added support to open tasks in app
- added custom keyword to add new tasks
  • Loading branch information
giovannicoppola committed Nov 10, 2023
1 parent 4c66020 commit fae334b
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 66 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ src="https://img.shields.io/github/downloads/giovannicoppola/alfreDo/total?color
1. Tasks due today (default: `!1`)
2. Overdue (default: `!2`)
3. All tasks (default: `!3`)
4. New task (default: `!!!`)
- set the keyword (or hotkey) to force-refresh (default: `todoist::refresh`)
- set the keyword (or hotkey) to create a new task (default: `!!!`)
- set refresh rate (in days). Default: `1`
- Recommended `0` (refresh every time) or `1` if you use Todoist often from browser, mobile etc.
- Database is automatically refreshed when a task is created, completed, or rescheduled.
- Refresh can be forced using a keyword (default: `todoist::refresh`) or hotkey.
- show Karma daily and weekly goals? Default: `yes`
- open task in Todoist app, or website


<h1 id="usage">Basic Usage 📖</h1>
Expand All @@ -63,7 +65,7 @@ src="https://img.shields.io/github/downloads/giovannicoppola/alfreDo/total?color
- launch with keyword or custom hotkey. You can start from 1) tasks due today, 2) tasks overdue, or 3) all tasks
- Use multiple strings, or label/projects to refine search. Use `@` to enter one or more labels, `#` to enter a project/section.
- Once a task is selected, you can do one of three things:
- `enter` ↩️ will open the task on [Todoist](https://todoist.com/)
- `enter` ↩️ will open the task on [Todoist](https://todoist.com/) (default) or in the Todoist app, based on user preference set in `Configure Workflow`
- `shift-enter` ⇧↩️ will complete the task
- `ctrl-enter` ^↩️ will open a menu to reschedule the task. Choose one of the options, or enter a date in international format, with (`YYYY-MM-DDTHH:MM`) of without (`YYYY-MM-DD`) time, or enter a number of days. You can also use `w` or `m` after the number to enter weeks and months, respectively (e.g. `10w` will reschedule in 10 weeks)

Expand Down Expand Up @@ -98,7 +100,7 @@ src="https://img.shields.io/github/downloads/giovannicoppola/alfreDo/total?color


<h1 id="changelog">Changelog 🧰</h1>

- 11-10-2023: version 0.3 support for app, bug fixes
- 06-10-2023: version 0.2.2 support for sections, international date, time, supporting spaces in project names
- 05-03-2023: version 0.1

Expand Down
Binary file added releases/AlfreDo_0.3.alfredworkflow
Binary file not shown.
1 change: 1 addition & 0 deletions source/alfredo-query.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ def parseInput(MY_INPUT):
"variables" : {
"myIter": False,
"myURL": f"https://todoist.com/app/project/{task['project_id']}/task/{task['id']}",
"myAppURL": f"todoist://task?id={task['id']}",
"myTaskID": task['id'],
"myTaskContent": myContent,
"myArg": MY_INPUT,
Expand Down
183 changes: 119 additions & 64 deletions source/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,6 @@
</array>
<key>27453929-F779-489C-B8BC-0F9487E32744</key>
<array>
<dict>
<key>destinationuid</key>
<string>4E48F7D7-AC83-4A0A-A3BC-2682FD5F6319</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>16597C9F-FD3C-4531-8E13-4D4253644CC4</string>
Expand Down Expand Up @@ -169,6 +159,16 @@
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>8626AD51-37A7-478D-9561-F5F20EF86C08</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>81A7FDDF-890B-49BE-907D-7ACFD33A1332</string>
Expand All @@ -182,16 +182,6 @@
</array>
<key>47D97373-8433-4825-8730-B8622E2C269D</key>
<array>
<dict>
<key>destinationuid</key>
<string>4E48F7D7-AC83-4A0A-A3BC-2682FD5F6319</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>16597C9F-FD3C-4531-8E13-4D4253644CC4</string>
Expand Down Expand Up @@ -230,6 +220,16 @@
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>8626AD51-37A7-478D-9561-F5F20EF86C08</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>81A7FDDF-890B-49BE-907D-7ACFD33A1332</string>
Expand Down Expand Up @@ -263,6 +263,16 @@
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>8626AD51-37A7-478D-9561-F5F20EF86C08</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>CF0E1859-2656-4994-96F9-BE03DFFD1B19</string>
Expand Down Expand Up @@ -410,16 +420,6 @@
</array>
<key>CF0E1859-2656-4994-96F9-BE03DFFD1B19</key>
<array>
<dict>
<key>destinationuid</key>
<string>4E48F7D7-AC83-4A0A-A3BC-2682FD5F6319</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>16597C9F-FD3C-4531-8E13-4D4253644CC4</string>
Expand Down Expand Up @@ -718,6 +718,33 @@ python3 alfredo_ops.py "findDate" "$myTaskID" "$1"</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>if [ "$taskOpen" = "app" ]; then
open "$myAppURL"
else
open "$myURL"
fi</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>11</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>8626AD51-37A7-478D-9561-F5F20EF86C08</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -840,27 +867,6 @@ python3 alfredo-query.py "due" "$1"</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>browser</key>
<string></string>
<key>skipqueryencode</key>
<false/>
<key>skipvarencode</key>
<false/>
<key>spaces</key>
<string></string>
<key>url</key>
<string>{var:myURL}</string>
</dict>
<key>type</key>
<string>alfred.workflow.action.openurl</string>
<key>uid</key>
<string>4E48F7D7-AC83-4A0A-A3BC-2682FD5F6319</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -1498,7 +1504,7 @@ python3 alfredo_ops.py "rebuild" "$1"
<key>escaping</key>
<integer>102</integer>
<key>keyword</key>
<string>!!!</string>
<string>{var:newtask_keyword}</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
Expand Down Expand Up @@ -1753,17 +1759,6 @@ An Alfred Workflow for [Todoist](https://todoist.com/)
<key>ypos</key>
<real>20</real>
</dict>
<key>4E48F7D7-AC83-4A0A-A3BC-2682FD5F6319</key>
<dict>
<key>colorindex</key>
<integer>3</integer>
<key>note</key>
<string>Open on todoist.com</string>
<key>xpos</key>
<real>1320</real>
<key>ypos</key>
<real>205</real>
</dict>
<key>4EEF423D-B6D9-4EB4-BFE9-5DDBEBC99391</key>
<dict>
<key>xpos</key>
Expand Down Expand Up @@ -1836,6 +1831,17 @@ An Alfred Workflow for [Todoist](https://todoist.com/)
<key>ypos</key>
<real>370</real>
</dict>
<key>8626AD51-37A7-478D-9561-F5F20EF86C08</key>
<dict>
<key>colorindex</key>
<integer>3</integer>
<key>note</key>
<string>Open task in app or todoist website</string>
<key>xpos</key>
<real>1320</real>
<key>ypos</key>
<real>195</real>
</dict>
<key>879C8F9C-7BCF-42B8-8FF4-227C4EDE9026</key>
<dict>
<key>colorindex</key>
Expand Down Expand Up @@ -2017,6 +2023,27 @@ An Alfred Workflow for [Todoist](https://todoist.com/)
<key>variable</key>
<string>alltasks_keyword</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string>!!!</string>
<key>placeholder</key>
<string></string>
<key>required</key>
<true/>
<key>trim</key>
<true/>
</dict>
<key>description</key>
<string></string>
<key>label</key>
<string>New Task Keyword</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
<string>newtask_keyword</string>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -2099,9 +2126,37 @@ An Alfred Workflow for [Todoist](https://todoist.com/)
<key>variable</key>
<string>RefreshRate</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string>browser</string>
<key>pairs</key>
<array>
<array>
<string>Todoist App</string>
<string>app</string>
</array>
<array>
<string>Todoist Website</string>
<string>browser</string>
</array>
</array>
</dict>
<key>description</key>
<string>Where to open tasks in: app or browser</string>
<key>label</key>
<string>Open tasks in</string>
<key>type</key>
<string>popupbutton</string>
<key>variable</key>
<string>taskOpen</string>
</dict>
</array>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>0.2.2</string>
<string>0.3</string>
<key>webaddress</key>
<string>https://github.com/giovannicoppola/AlfreDo</string>
</dict>
Expand Down

0 comments on commit fae334b

Please sign in to comment.