TodoTxtJs icon indicating copy to clipboard operation
TodoTxtJs copied to clipboard

make negative Filtering possible?

Open hooveraj opened this issue 9 years ago • 2 comments

What would it take to make it possible to use negative or subtractive filtering? e.g. "-@home" would show all tasks except those with the context of @home.

Also, along the same lines, what would it take to make OR filtering possible? e.g. "@home OR @errand" would return tasks that have either of those contexts, not only tasks that have both (the current behavior).

hooveraj avatar Mar 28 '15 17:03 hooveraj

Some level of this already exists: https://github.com/MartinSGill/TodoTxtJs/wiki/Filters

I have thought about this in the past, but mostly I found that with a project and context assigned it's very easy to find things. That's why I've only implemented the "no project" and "no context" filters.

Is there a specific scenario where you feel having these extra filters would be really valuable?

MartinSGill avatar Mar 28 '15 21:03 MartinSGill

Hi, negative filtering is useful to clean future tasks, that need another task be finished or you have in a backlog, waiting to something. You can tag these tasks with +pending or +waitingFor. Note that the opensource Android app simpletask supports this feature.

jaimemrjm avatar Jun 30 '16 21:06 jaimemrjm