From 0860db73ae6fd9a6f6347219d820bf026a6b8b91 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 27 Sep 2026 17:38:39 +0200 Subject: * MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automated-commit-by: dots Signed-off-by: Robert Günzler --- bin/todo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin/todo') 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) -- cgit 1.4.1