Skip to content

Commit b9434f4

Browse files
Xyanktbabej
authored andcommitted
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
1 parent 3e602ce commit b9434f4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

taskwiki/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def tw_args_to_kwargs(args):
8989
elif arg.startswith('+'):
9090
value = arg[1:]
9191
# Ignore virtual tags
92-
if not value.isupper():
92+
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"]
93+
if not value in vtags:
9394
output.setdefault('tags', []).append(value)
9495
# Ignore tag removal
9596

0 commit comments

Comments
 (0)