]> git.rmz.io Git - dotfiles.git/commitdiff
task: configure urgency modifiers
authorSamir Benmendil <me@rmz.io>
Tue, 26 Mar 2024 00:34:12 +0000 (00:34 +0000)
committerSamir Benmendil <me@rmz.io>
Tue, 26 Mar 2024 00:47:58 +0000 (00:47 +0000)
task/taskrc

index 03b875538890ac9b26f0e1f0dd6a2934b722086c..1bd4b763c8657a5c78a9b5feb57f7d6a7b503bf9 100644 (file)
@@ -50,6 +50,19 @@ report.closed.filter      = ( status:completed or status:deleted ) limit:page
 report.closed.sort        = end-
 report.closed.context     = yes
 
+# Urgency
+urgency.uda.priority.L.coefficient=-2  # setting priority to low reduces urgency
+
+urgency.user.tag.in.coefficient=-1
+
+# 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,
+# then add on top a blocking coefficient
+urgency.inherit              = yes
+urgency.blocked.coefficient  = 0.0
+urgency.blocking.coefficient = 4.0
+
 # taskd
 taskd.certificate=$XDG_DATA_HOME/task/hactar.cert.pem
 taskd.key=$XDG_DATA_HOME/task/hactar.key.pem