MartinSGill / TodoTxtJs

A Javascript web app implementation of TodoTxt
72 stars 29 forks source link

make negative Filtering possible? #81

Open hooveraj opened 9 years ago

hooveraj commented 9 years ago

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).

MartinSGill commented 9 years ago

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?

jaimemrjm commented 8 years ago

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.