summary refs log tree commit diff
path: root/bin/todo
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-09-27 17:38:39 +0200
committerRobert Günzler <r@gnzler.io>2026-09-27 17:38:39 +0200
commit0860db73ae6fd9a6f6347219d820bf026a6b8b91 (patch)
tree11318c3670d1c32c5aa0bf404c22fba3bf63fc53 /bin/todo
parent4e34cbf9673aeaba252e01df554a0d204e83c5e2 (diff)
downloaddotfiles-0860db73ae6fd9a6f6347219d820bf026a6b8b91.tar.gz
Automated-commit-by: dots
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
-rwxr-xr-xbin/todo6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/todo b/bin/todo
index 7436779..51f60c0 100755
--- a/bin/todo
+++ b/bin/todo
@@ -52,9 +52,9 @@ function link(uri) {
     // support todotxt files
     if (filename() == "todo.txt") {
         status = "TODO"
-        if ($1 ~ /^x/) {
+        if ($1 == "x") {
             status = "DONE"
-            $0 = gensub(/^[x] /, "", "1")
+            $0 = gensub(/^x /, "", "1")
             $0 = strike($0)
         }
 
@@ -66,7 +66,7 @@ function link(uri) {
     }
 
     // support TODO files
-    if ($1 ~ /^(-|*)/) {
+    if ($1 == "*" || $1 == "-") {
         // detect status strings
         match($0, /\s(TODO|WIP|WAITING|DONE)\s/, arr)