From 4e08da26148654d1800b3c212eb4293a49340e27 Mon Sep 17 00:00:00 2001 From: Matthew Ryan Dillon Date: Mon, 15 Dec 2025 17:52:26 -0500 Subject: [PATCH] nb: passthrough todo subcommand --- home/bin/executable_nb | 9 +++++++++ ...{executable_archive_todos => executable_todo_archive} | 0 2 files changed, 9 insertions(+) rename home/bin/{executable_archive_todos => executable_todo_archive} (100%) diff --git a/home/bin/executable_nb b/home/bin/executable_nb index 8c05271..19a8cbb 100644 --- a/home/bin/executable_nb +++ b/home/bin/executable_nb @@ -22,6 +22,8 @@ Commands: log Show commit log diff Show differences status Show diff summary + todo Add a todo item (or manage todos) + archive Archive completed todos EOF } @@ -45,6 +47,13 @@ case "$1" in status) jj diff -s ;; + todo) + if [[ "$2" == "archive" && -z "$3" ]]; then + todo_archive todo.xit done.xit + else + todo "${@:2}" + fi + ;; "") show_help ;; diff --git a/home/bin/executable_archive_todos b/home/bin/executable_todo_archive similarity index 100% rename from home/bin/executable_archive_todos rename to home/bin/executable_todo_archive