From cbc9ffbee729a4c5b8f09a6c13b516eaf3c7c50f Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Mon, 15 Jun 2026 23:46:33 -0500 Subject: build: add task-sorted target to archive resolved todo tasks make task-sorted wraps todo-cleanup.el --archive-done, moving DONE/CANCELLED level-2 subtrees from Open Work into Resolved. Ran it: archived this session's closed tasks. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7f4352c97..319977e88 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,7 @@ EMACS_TEST = $(EMACS_BATCH) -L $(TEST_DIR) -L $(MODULE_DIR) test-bash theme-studio-test theme-studio-check theme-studio-coverage theme-studio-gen theme-studio-open theme-studio-theme theme-studio-theme-load theme-studio-theme-reload deploy-wip \ benchmark coverage coverage-summary coverage-clean \ validate-parens validate-modules compile compile-file lint profile \ + task-sorted \ clean clean-compiled clean-tests reset # Alias for help @@ -457,6 +458,13 @@ profile: --eval "(profile-dotemacs)"; \ fi +# Move completed tasks (DONE/CANCELLED level-2 subtrees) out of "Open Work" +# and into the "Resolved" section of todo.org. Wraps todo-cleanup.el's +# --archive-done; a no-op when nothing is in a closed state. +task-sorted: + @echo "Archiving resolved tasks in todo.org..." + @$(EMACS) --batch -q -l .ai/scripts/todo-cleanup.el --archive-done todo.org + clean: clean-tests clean-compiled @echo "✓ Clean complete" -- cgit v1.2.3