]> git.rmz.io Git - dotfiles.git/commitdiff
task: introduce work UDA
authorSamir Benmendil <me@rmz.io>
Thu, 13 Mar 2025 22:08:19 +0000 (22:08 +0000)
committerSamir Benmendil <me@rmz.io>
Thu, 13 Mar 2025 22:08:19 +0000 (22:08 +0000)
This seems to work slightly better than the work tag.

task/taskrc

index 89610b7ece7cb4d4d73a1705aff793665fe7cdfe..4a071aee312b22d36b70dcd7fa40e6df032b0aa7 100644 (file)
@@ -59,6 +59,11 @@ urgency.uda.priority.L.coefficient=-2  # setting priority to low reduces urgency
 urgency.user.tag.in.coefficient = -1
 urgency.scheduled.coefficient   = 8
 
+# UDAs
+uda.work.type   = string
+uda.work.label  = Work
+uda.work.values = ,yes,wfh,bristol,cambridge
+
 # inherit highest urgency from blocked tasks
 # TODO: this doesn't quite work, check source code for explanation
 # I'd like the blocking task to use the highest blocked task as a base urgency,
@@ -97,9 +102,19 @@ taskd.credentials=rmz/ramsi/30ffb102-3b0e-4b60-ad7e-df63b8920262
 taskd.server=rmz.io:53589
 
 # Context
-context.wfh.read=( project:work or +work or project:chores or +habit or +chore)
-context.wfh.write=+work
-context.home.read=-work
+## Combination of work and home related chores/habits
+context.wfh.read   = (work:yes or work:wfh or +habit or +chore)
+context.wfh.write  = work:yes
+
+## Work only for planning (maybe not needed?)
+context.work.read  = work.any:
+context.work.write = work:yes
+
+## Home, no work
+context.home.read  = work.none:
+
+## Outside, meant to be for checking on phone for other things I should do while out
+context.outside.read=+outside
 
 # NOTE: a context setting may be updated/added automatically on the last line
 news.version=3.0.2