aboutsummaryrefslogtreecommitdiff
path: root/modules/custom-comments.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-06 14:09:31 -0500
committerCraig Jennings <c@cjennings.net>2026-06-06 14:09:31 -0500
commit07022b5bc52cd1cfe9b5003c0172706acedbd178 (patch)
tree12806bafcd63467713d9767e4cddea727ac93ccd /modules/custom-comments.el
parent822d62f54c1ebffb16b2b66f9e777920179de55e (diff)
downloaddotemacs-07022b5bc52cd1cfe9b5003c0172706acedbd178.tar.gz
dotemacs-07022b5bc52cd1cfe9b5003c0172706acedbd178.zip
feat(capture): project-aware Task and Bug capture targets
C-c c t (Task) and a new C-c c b (Bug) now file into the current projectile project's todo.org under its "... Open Work" heading instead of always landing in the global inbox. Bug stamps the entry [#C]. Task stays a plain TODO. Both share one function target, cj/--org-capture-project-location. It matches an existing top-level "... Open Work" heading when there is one, so a directory like .emacs.d resolves to the existing "Emacs Open Work" rather than a name derived from the basename. It only creates "<Project> Open Work" when the file has none. Outside a project, or in a project whose root has no todo.org, it falls back to the global inbox under "Inbox". In the no-todo.org case it also warns, naming the project. It never creates a project's todo.org. I split the logic into pure helpers (project name, target decision, find-or-create heading) so they test directly, with the impure buffer-positioning left thin. 15 ERT tests cover the helpers and the wiring. I confirmed a real capture lands the entry under Open Work at the right level in the running daemon.
Diffstat (limited to 'modules/custom-comments.el')
0 files changed, 0 insertions, 0 deletions