]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: some tidying in task lib
authorSamir Benmendil <me@rmz.io>
Sun, 7 Dec 2025 20:50:25 +0000 (20:50 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 7 Dec 2025 21:27:00 +0000 (21:27 +0000)
zsh/lib/50-taskwarrior.zsh

index 051b015a265a3d2f3b04818b0cf7dedae17de1a5..84ee1ff105292586546566c9f89d472e5a2eb600 100644 (file)
@@ -5,12 +5,15 @@ fi
 alias task="noglob task"
 alias t="task"
 alias tt="task today"
-alias tlatest="t +LATEST"
-alias in="noglob task add +in"
+
+alias in="task add +in"
 alias inn="in rc.context=none"
+
 alias tw="task context wfh"
 alias th="task context home"
 
+alias tlatest="t +LATEST"
+
 autoload -Uz task-quote-magic
 zle -N self-insert task-quote-magic
 
@@ -20,6 +23,7 @@ function tparent() {
 }
 
 function tick() {
+    # TODO: have duration as an option to allow multiple filter
     if (( # < 1 || # > 2)); then
         print >&2 "Usage: $0 <filter> [duration]"
         return 1
@@ -27,6 +31,8 @@ function tick() {
     task $1 mod wait:${2:-1h}
 }
 
+# TODO: function to show the latest report
+
 function task_today_list() {
   local task_cmd=(task rc.verbose:nothing)
   local task_count=$($task_cmd $($task_cmd _get rc.report.today.filter) count)