From b6bf4e607284daf6ef41379c14034017c1fae65b Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Mon, 6 Jul 2015 22:44:05 +0000 Subject: [PATCH] _tags: Print virtual tags too. --- doc/man/task.1.in | 1 + src/commands/CmdTags.cpp | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/doc/man/task.1.in b/doc/man/task.1.in index 57917d75e..2965af7e4 100644 --- a/doc/man/task.1.in +++ b/doc/man/task.1.in @@ -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 diff --git a/src/commands/CmdTags.cpp b/src/commands/CmdTags.cpp index e0ca7f059..76ed39c58 100644 --- a/src/commands/CmdTags.cpp +++ b/src/commands/CmdTags.cpp @@ -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)