mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
A3t
- ::getFilterExpression expands +tag to tags _hastag_ tag, -tag to tags _notag_ tag.
This commit is contained in:
parent
2770f0388c
commit
4a392a53a2
1 changed files with 4 additions and 3 deletions
|
@ -564,12 +564,13 @@ const std::string A3t::getFilterExpression ()
|
|||
}
|
||||
else if ((*i)->hasTag ("TAG"))
|
||||
{
|
||||
// TODO +tag --> _hastag_ tag
|
||||
// TODO -tag --> _notag_ tag
|
||||
if (filter != "")
|
||||
filter += ' ';
|
||||
|
||||
filter += "<tag>";
|
||||
if ((*i)->attribute ("sign") == "+")
|
||||
filter += "tags _hastag_ " + (*i)->attribute ("tag");
|
||||
else
|
||||
filter += "tags _notag_ " + (*i)->attribute ("tag");
|
||||
}
|
||||
else if ((*i)->hasTag ("PATTERN"))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue