aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-29 16:17:53 -0400
committerCraig Jennings <c@cjennings.net>2026-06-29 16:17:53 -0400
commite53547b99d9ca25e785cf3d55c5dcaa0f2c872fd (patch)
treeb290c79b219460d83aa6b23d4a566af551349728 /Makefile
parentbc3f370de803d3db6f3cbf864186ed8dabbf6151 (diff)
downloaddotemacs-e53547b99d9ca25e785cf3d55c5dcaa0f2c872fd.tar.gz
dotemacs-e53547b99d9ca25e785cf3d55c5dcaa0f2c872fd.zip
chore: archive resolved tasks older than a week
make task-sorted now ages the Resolved section. Tasks closed more than a week ago, and any with no CLOSED date, move out to archive/task-archive.org, keeping only the last week of closed tasks in todo.org. The target then runs org-lint on todo.org to catch structural problems from the move. This pass moved 207 tasks to the archive and pulled 4 newly-closed tasks into Resolved, dropping todo.org from 9,600 to 5,600 lines.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3ee6ec12a..a2f491a97 100644
--- a/Makefile
+++ b/Makefile
@@ -459,11 +459,15 @@ profile:
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.
+# and into the "Resolved" section of todo.org, then age that section: tasks
+# closed more than a week ago move out to archive/task-archive.org, keeping
+# only the last week of closed tasks in todo.org. Wraps todo-cleanup.el's
+# --archive-done; a no-op when nothing is closed and nothing has aged out.
task-sorted:
@echo "Archiving resolved tasks in todo.org..."
@$(EMACS) --batch -q -l .ai/scripts/todo-cleanup.el --archive-done todo.org
+ @echo "Linting todo.org..."
+ @$(EMACS) --batch -q -l .ai/scripts/lint-org.el todo.org
clean: clean-tests clean-compiled
@echo "✓ Clean complete"