- Added some more low-effort, low-risk virutal tags.  Why not.
- Updated man page.
This commit is contained in:
Paul Beckingham 2013-03-30 13:06:06 -04:00
parent a7b06bd0ee
commit 983e07ab01
4 changed files with 15 additions and 6 deletions

View file

@ -955,6 +955,12 @@ bool Task::hasTag (const std::string& tag) const
if (tag == "DUETODAY") return is_duetoday ();
if (tag == "TODAY") return is_duetoday ();
if (tag == "OVERDUE") return is_overdue ();
if (tag == "ACTIVE") return has ("start");
if (tag == "SCHEDULED") return has ("scheduled");
if (tag == "CHILD") return has ("parent");
if (tag == "UNTIL") return has ("until");
if (tag == "WAITING") return has ("wait");
/*
TODO YESTERDAY - due yesterday
TODO TOMORROW - due tomorrow
@ -962,13 +968,9 @@ bool Task::hasTag (const std::string& tag) const
TODO MONTH - due this month
TODO YEAR - due this year
TODO ANNOTATED - has any annotations
TODO ACTIVE - is active
TODO READY - is ready
TODO SCHEDULED - is scheduled
TODO WAITING - is waiting
TODO CHILD - is a child
TODO PARENT - is a parent
TODO UNTIL - will expire
*/
// Concrete tags.