diff --git a/ChangeLog b/ChangeLog index 38747c609..4b50821db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -36,6 +36,7 @@ - TW-1261 Migrate test bug.360.t to new unit testing framework (thanks to Renato Alves). - 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-1278 Next report filters tasks with due date set until due date arrives (thanks to Renato Alves). diff --git a/NEWS b/NEWS index c03b83d91..a12beec6c 100644 --- a/NEWS +++ b/NEWS @@ -5,7 +5,8 @@ New Features in taskwarrior 2.4.0 - Removed deprecated commands 'push', 'pull' and 'merge'. - Portuguese (por-PRT) localization. - 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. - Regular expressions are now enabled by default. diff --git a/doc/man/task.1.in b/doc/man/task.1.in index 79df33646..30432dbb5 100644 --- a/doc/man/task.1.in +++ b/doc/man/task.1.in @@ -591,6 +591,7 @@ are: UNTIL Matches if the task expires WAITING Matches if the task is waiting ANNOTATED Matches if the task has annotations + TAGGED Matches if the task has tags PENDING Matches if the task has pending status COMPLETED Matches if the task has completed status DELETED Matches if the task has deleted status diff --git a/src/Task.cpp b/src/Task.cpp index 0f6f77c46..b717d06db 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -1225,6 +1225,7 @@ bool Task::hasTag (const std::string& tag) const if (tag == "UNTIL") return has ("until"); if (tag == "WAITING") return has ("wait"); if (tag == "ANNOTATED") return hasAnnotations (); + if (tag == "TAGGED") return has ("tags"); if (tag == "PARENT") return has ("mask"); if (tag == "PENDING") return get ("status") == "pending"; if (tag == "COMPLETED") return get ("status") == "completed";