This workflow allows you to search, open, add, and complete tasks in TickTick
Click here to download the latest version of the workflow. Or you can build it yourself by cloning this repo into your Alfred workflows directory. To run this workflow, you will need to have the Alfred Powerpack and python3 installed.
Libraries such as python3 and parsedatetime are included in the workflow, so you don't need to install them yourself.
Please note, this workflow is not an official TickTick product and is not affiliated with TickTick in any way.
- Go to https://developer.ticktick.com/manage and
create a new app with any name you want. You'll be asked for a redirect url, please enter in
http://localhost
. - Now you should have a "Client ID" and "Client Secret". Copy these values.
- Here it also asks for "OAuth redirect URL", please enter
http://localhost
and save. - Go to "Configure Workflow" button on this workflow on Alfred, paste the "Client ID" and "Client Secret"
- Using Alfred, type in
tsetup1
and authorise the workflow, you'll be redirected tohttp://localhost?code=xxxxx
. Please copy the code from the url. - Using Alred, type in
tsetup2
followed by the code from the step 1 (e.g.tsetup2 xxxxx
). You are now ready to use the workflow!
Search for a list in TickTick. Pressing enter will open the list in TickTick.
Create a new list in TickTick with the given name.
Search for a task in TickTick. Pressing enter will open the task in TickTick.
You can search for tasks in a few different ways:
tts
- Search for all taskstts <task-name>
- Search for tasks with the given nametts <list-name>
- Search for tasks in the given listtts @today
ortts @tod
- Search for tasks due todaytts @tomorrow
ortts @tom
- Search for tasks due tomorrowtts @thisweek
ortts @tw
- Search for tasks due this week
As mentioned in the Current Limitations section, you cannot search for tasks in Inbox at the moment.
You can complete a task by pressing cmd + enter
when selecting a task in the search results from the Task Search command.
Create a new task in TickTick with the given name.
You can add an optional comma at the end and include a due date using natural language:
ttn Do laundry
ttn Do the laundry, tomorrow at 5pm
ttn Do the laundry, next week
ttn Do the laundry, monday
As mentioned in the Current Limitations section, you can only add tasks to the Inbox list at the moment.
Sync your TickTick account with the workflow by clearing the cache and fetching your latest lists and tasks. This is done automatically when:
- You search for a list or task, and it's been more than 5 minutes since the last sync
- You create a new list or task
- You complete a task
Once you run this command, please wait a moment for the sync to complete before searching for a list or task. This can take a few seconds if you have a lot of lists.
Open the calendar in TickTick, in the day view.
Open the calendar in TickTick, in the week view.
Open the calendar in TickTick, in the month view.
- Task search can take a while to load if you have a lot of lists - this is a limitation of the TickTick API as it requires a separate request for each list. Although once loaded it should be cached.
- You cannot search for tasks in Inbox - this is a limitation of the TickTick API.
- You cannot add tasks to any list other than Inbox - this is a limitation of the TickTick API.
As the TickTick API is quite new, I'm hoping these limitations will be fixed in the future.
If you have any issues or feature requests, please open an issue or a pull request.
- TickTick API - The TickTick API used to build this workflow.
- ualfred & Alfred Workflow - The python3 library fork and the Alfred workflow library used to build this workflow.
- parsedatetime - Used to parse natural language dates and times for creating tasks.
This project is licensed under the MIT License - see the LICENSE file for details