diff options
| author | Robert Günzler <r@gnzler.io> | 2026-09-27 17:38:39 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-09-27 17:38:39 +0200 |
| commit | 0860db73ae6fd9a6f6347219d820bf026a6b8b91 (patch) | |
| tree | 11318c3670d1c32c5aa0bf404c22fba3bf63fc53 /bin/todo | |
| parent | 4e34cbf9673aeaba252e01df554a0d204e83c5e2 (diff) | |
| download | dotfiles-master.tar.gz | |
Automated-commit-by: dots Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bin/todo')
| -rwxr-xr-x | bin/todo | 6 |
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) |