- TW-1264 Project | Tags assigned ratio of tasks (thanks to Benjamin Weber).
This commit is contained in:
Paul Beckingham 2014-05-13 00:50:36 -04:00
parent 20fe380a5e
commit e9178f6b34
4 changed files with 5 additions and 1 deletions

View file

@ -36,6 +36,7 @@
- TW-1261 Migrate test bug.360.t to new unit testing framework (thanks to - TW-1261 Migrate test bug.360.t to new unit testing framework (thanks to
Renato Alves). Renato Alves).
- TW-1263 Command Reference Redesign. - TW-1263 Command Reference Redesign.
- TW-1264 Project | Tags assigned ratio of tasks (thanks to Benjamin Weber).
- TW-1274 Map 'modification' attribute to 'modified' (thanks to jck). - TW-1274 Map 'modification' attribute to 'modified' (thanks to jck).
- TW-1278 Next report filters tasks with due date set until due date arrives - TW-1278 Next report filters tasks with due date set until due date arrives
(thanks to Renato Alves). (thanks to Renato Alves).

3
NEWS
View file

@ -5,7 +5,8 @@ New Features in taskwarrior 2.4.0
- Removed deprecated commands 'push', 'pull' and 'merge'. - Removed deprecated commands 'push', 'pull' and 'merge'.
- Portuguese (por-PRT) localization. - Portuguese (por-PRT) localization.
- Better handling for deletion of recurring tasks. - Better handling for deletion of recurring tasks.
- New virtual tags: YESTERDAY, TOMORROW, READY, PENDING, COMPLETED, DELETED. - New virtual tags: YESTERDAY, TOMORROW, READY, PENDING, COMPLETED, DELETED,
TAGGED.
- The '_get' command properly uses exit codes. - The '_get' command properly uses exit codes.
- Regular expressions are now enabled by default. - Regular expressions are now enabled by default.

View file

@ -591,6 +591,7 @@ are:
UNTIL Matches if the task expires UNTIL Matches if the task expires
WAITING Matches if the task is waiting WAITING Matches if the task is waiting
ANNOTATED Matches if the task has annotations ANNOTATED Matches if the task has annotations
TAGGED Matches if the task has tags
PENDING Matches if the task has pending status PENDING Matches if the task has pending status
COMPLETED Matches if the task has completed status COMPLETED Matches if the task has completed status
DELETED Matches if the task has deleted status DELETED Matches if the task has deleted status

View file

@ -1225,6 +1225,7 @@ bool Task::hasTag (const std::string& tag) const
if (tag == "UNTIL") return has ("until"); if (tag == "UNTIL") return has ("until");
if (tag == "WAITING") return has ("wait"); if (tag == "WAITING") return has ("wait");
if (tag == "ANNOTATED") return hasAnnotations (); if (tag == "ANNOTATED") return hasAnnotations ();
if (tag == "TAGGED") return has ("tags");
if (tag == "PARENT") return has ("mask"); if (tag == "PARENT") return has ("mask");
if (tag == "PENDING") return get ("status") == "pending"; if (tag == "PENDING") return get ("status") == "pending";
if (tag == "COMPLETED") return get ("status") == "completed"; if (tag == "COMPLETED") return get ("status") == "completed";