mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1301
- TW-1301 Virtual tag +PENDING (thanks to Profpatsch). - Also added +COMPLETED and +DELETED.
This commit is contained in:
parent
a49ed165c3
commit
c6b0c0d927
5 changed files with 11 additions and 3 deletions
|
@ -1169,6 +1169,9 @@ bool Task::hasTag (const std::string& tag) const
|
|||
if (tag == "WAITING") return has ("wait");
|
||||
if (tag == "ANNOTATED") return hasAnnotations ();
|
||||
if (tag == "PARENT") return has ("mask");
|
||||
if (tag == "PENDING") return get ("status") == "pending";
|
||||
if (tag == "COMPLETED") return get ("status") == "completed";
|
||||
if (tag == "DELETED") return get ("status") == "deleted";
|
||||
|
||||
// Concrete tags.
|
||||
std::vector <std::string> tags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue