mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancement - filter on annotation
- Description filters now automatically apply to annotations.
This commit is contained in:
parent
245339e7fc
commit
343c43a010
3 changed files with 57 additions and 15 deletions
14
src/Att.cpp
14
src/Att.cpp
|
@ -478,6 +478,13 @@ bool Att::match (const Att& other) const
|
|||
return false;
|
||||
}
|
||||
|
||||
// has = contains as a substring.
|
||||
else if (mMod == "has" || mMod == "contains") // TODO i18n
|
||||
{
|
||||
if (other.mValue.find (mValue) == std::string::npos)
|
||||
return false;
|
||||
}
|
||||
|
||||
// is = equal. Nop.
|
||||
else if (mMod == "is" || mMod == "equals") // TODO i18n
|
||||
{
|
||||
|
@ -528,13 +535,6 @@ bool Att::match (const Att& other) const
|
|||
return false;
|
||||
}
|
||||
|
||||
// has = contains as a substring.
|
||||
else if (mMod == "has" || mMod == "contains") // TODO i18n
|
||||
{
|
||||
if (other.mValue.find (mValue) == std::string::npos)
|
||||
return false;
|
||||
}
|
||||
|
||||
// hasnt = does not contain as a substring.
|
||||
else if (mMod == "hasnt") // TODO i18n
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue