]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/lib/50-taskwarrior.zsh
ssh: RemoteForward gpg-agent socket to fpp and deepthought
[dotfiles.git] / zsh / lib / 50-taskwarrior.zsh
index 84ee1ff105292586546566c9f89d472e5a2eb600..fc5b0c394cf3a3f50f9fb7caaa840b91b9a07f42 100644 (file)
@@ -31,6 +31,22 @@ function tick() {
     task $1 mod wait:${2:-1h}
 }
 
     task $1 mod wait:${2:-1h}
 }
 
+function turg() {
+    local context=$(task _get rc.context)
+    local context_read=$(task _get rc.context.$context.read)
+    local urg_task=$(task +READY $context_read _urgency | sort -k4 -n | tail -1 | cut -d" " -f2)
+    task $urg_task $@
+}
+
+function rnr() {
+    # Taken from https://cs-syd.eu/posts/2015-07-05-gtd-with-taskwarrior-part-4-processing
+    local link="$1"
+    title=$(curl --silent "$link" | htmlq --text title)
+    descr="'$title'"
+    task add +in +rnr $descr
+    task +LATEST annotate "$link"
+}
+
 # TODO: function to show the latest report
 
 function task_today_list() {
 # TODO: function to show the latest report
 
 function task_today_list() {