Excluding a project when searching TaskWarrior
June 18, 2024 —
Nico Cartron
Context
I have been using Taskwarrior for some weeks now (see that article), and one thing that annoyed me was the unability to exclude specific things from the search.
While it's possible to exclude tags by using a -
(e.g. task -personal
), I
could not find a way to exclude a specific project.
Searching the man page yielded no result.
Solution
Today was one of these days were I did search on DuckDuckGo surely in a slightly
different manner, since this time I found an answer on
Stackoverflow:
it's a simple as adding a .not
modifier, e.g.:
task project.not:<PROJECT_NAME>
(Note that there are other answers which are not that relevant, or more of a workaround!)
Tags: IT