obsidian-todoist-text icon indicating copy to clipboard operation
obsidian-todoist-text copied to clipboard

Keep task order from filter query

Open skullbunnygalaxy opened this issue 2 years ago • 1 comments

When populating tasks it would be nice to keep them in the order I have them in based on the filter.

For example, my primary filter in Todoist is overdue, ((@routine&!@Calendar&p1) & today),((!@routine* &!@Calendar) & today), ((@routine&!@Calendar&(p2|p3)) & today), ((@routine&!@Calendar&No priority) & today),@Calendar.

However, when using this filter in Todoist Text, it does not keep them in that order.

skullbunnygalaxy avatar Feb 10 '23 05:02 skullbunnygalaxy

While reviewing the REST API documentation for another issue, I found out that the comma operator is not supported when using the filter parameter in a single API call. The only way this would work is to look for the comma operator and split the filter into multiple API calls within the plugin itself, which I suspect is how that is implemented within the Todoist app itself in order to utilize that functionality.

skullbunnygalaxy avatar Mar 02 '24 05:03 skullbunnygalaxy