From 66bc76a8175112a162d621a49847c0cf1a555fb0 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 13 Mar 2025 22:08:19 +0000 Subject: [PATCH] task: introduce work UDA This seems to work slightly better than the work tag. --- task/taskrc | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/task/taskrc b/task/taskrc index 89610b7..4a071ae 100644 --- a/task/taskrc +++ b/task/taskrc @@ -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 -- 2.48.1