From 10cccc80ad5f53d93772f88c711e0a881fa40d9e Mon Sep 17 00:00:00 2001 From: Xyank Date: Sun, 26 Jul 2020 15:33:49 +0530 Subject: [PATCH] Replace ignoring all uppercase tags with vtags This commit explicitly defines a list of virtual tags as given in the link given below at this point in time. This includes virtual tags defined for version 2.6.0 (+QUARTER). https://taskwarrior.org/docs/tags.html --- taskwiki/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/taskwiki/util.py b/taskwiki/util.py index f5f9fef11..0cc595e05 100644 --- a/taskwiki/util.py +++ b/taskwiki/util.py @@ -88,7 +88,8 @@ def tw_args_to_kwargs(args): elif arg.startswith('+'): value = arg[1:] # Ignore virtual tags - if not value.isupper(): + vtags = ["BLOCKED", "UNBLOCKED", "BLOCKING", "DUE", "DUETODAY", "TODAY", "OVERDUE", "WEEK", "MONTH", "QUARTER", "YEAR", "ACTIVE", "SCHEDULED", "PARENT", "CHILD", "UNTIL", "WAITING", "ANNOTATED", "READY", "YESTERDAY", "TOMORROW", "TAGGED", "PENDING", "COMPLETED", "DELETED", "UDA", "ORPHAN", "PRIORITY", "PROJECT", "LATEST"] + if not value in vtags: output.setdefault('tags', []).append(value) # Ignore tag removal