Closed bytrangle closed 3 years ago
This is not solution, but to me works following, spell only first word of the project's name:
todoist l -f '#Build'
Todoist docs says nothing about space character in the project names: https://todoist.com/help/articles/filters
I've also having this issue. In my case my project is '#Machine Learning' but it throws a syntax error. Is this an API issue, or how the filtering is implemented in the golang code?
@eugeneware : IIRC this is a Todoist API issue. In case you don't have another project that contains the word Machine, you can filter for your Machine Learning project with the first word only. Example:
todoist l -f '#Machine'
Thanks @bytrangle - I didn't realise it was a raw API issue, I saw a query parser in the source code and thought it might be due to the local logic in this tool. I'll use that as a work around for now. Thanks.
For example, I have two projects: Blogging and Build a CLI app. If I want to retrieve tasks belong to the Blogging project, I can run this command with no problem:
todoist l --filter '#Blogging'
However, the same syntax for retrieving tasks from the Build a Cli app fails:todoist l --filter '#Build a Cli app
It throws an error: `Filter error: syntax error For proper filter syntax see https://support.todoist.com/hc/en-us/articles/205248842-Filters'.