mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Feature #710
- Added feature #710, which adds an attribute modifier prefix to return the complement of a filtered set (thanks to Dan White). - Added missing description to the 'help' command. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
parent
17f97651a3
commit
4b71fa73f8
10 changed files with 241 additions and 11 deletions
|
@ -861,12 +861,20 @@ void Context::autoFilter (Att& a, Filter& f)
|
|||
}
|
||||
|
||||
// Projects are matched left-most.
|
||||
else if (a.name () == "project" && a.mod () == "")
|
||||
else if (a.name () == "project" && (a.mod () == "" || a.mod () == "not"))
|
||||
{
|
||||
if (a.value () != "")
|
||||
{
|
||||
f.push_back (Att ("project", "startswith", a.value ()));
|
||||
debug ("auto filter: " + a.name () + ".startswith:" + a.value ());
|
||||
if (a.mod () == "not")
|
||||
{
|
||||
f.push_back (Att ("project", "startswith", a.value (), "negative"));
|
||||
debug ("auto filter: " + a.name () + ".~startswith:" + a.value ());
|
||||
}
|
||||
else
|
||||
{
|
||||
f.push_back (Att ("project", "startswith", a.value ()));
|
||||
debug ("auto filter: " + a.name () + ".startswith:" + a.value ());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue