_tags: Print virtual tags too.

This commit is contained in:
Daniel Shahaf 2015-07-06 22:44:05 +00:00 committed by Paul Beckingham
parent bfbd3b4768
commit b6bf4e6072
2 changed files with 26 additions and 0 deletions

View file

@ -676,6 +676,7 @@ are:
PENDING Matches if the task has pending status
COMPLETED Matches if the task has completed status
DELETED Matches if the task has deleted status
.\" If you update the above list, update src/commands/CmdTags.cpp as well.
You can use +BLOCKED to filter blocked tasks, or -BLOCKED for unblocked tasks.
Similarly, -BLOCKED is equivalent to +UNBLOCKED. It is an error to attempt to

View file

@ -177,6 +177,31 @@ int CmdCompletionTags::execute (std::string& output)
unique["nonag"] = 0;
unique["nocal"] = 0;
unique["next"] = 0;
unique["BLOCKED"] = 0;
unique["UNBLOCKED"] = 0;
unique["BLOCKING"] = 0;
unique["YESTERDAY"] = 0;
unique["DUE"] = 0;
unique["DUETODAY"] = 0;
unique["TODAY"] = 0;
unique["TOMORROW"] = 0;
unique["WEEK"] = 0;
unique["MONTH"] = 0;
unique["YEAR"] = 0;
unique["OVERDUE"] = 0;
unique["ACTIVE"] = 0;
unique["SCHEDULED"] = 0;
unique["READY"] = 0;
unique["PARENT"] = 0;
unique["CHILD"] = 0;
unique["UNTIL"] = 0;
unique["WAITING"] = 0;
unique["ANNOTATED"] = 0;
unique["TAGGED"] = 0;
unique["PENDING"] = 0;
unique["COMPLETED"] = 0;
unique["DELETED"] = 0;
// If you update this list, update doc/man/task.1.in as well.
std::stringstream out;
for (auto& it : unique)