diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-26 00:16:54 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-26 00:16:54 -0500 |
| commit | 0418ccd93b2e9224de41db461a1a41f8658c6ec5 (patch) | |
| tree | 523accff76b6d7c25a7ac39375d534fcade8b1be /ai-prompts | |
| parent | 7f7c8bb51fc745ee1eaf8d7fa01b67c7dde8e722 (diff) | |
fix:org-roam: copy completed tasks to dailies on state transitions
Fixed and enhanced the org-roam hook that copies completed tasks to
daily notes:
- Fixed hook not triggering immediately after Emacs launch by moving it
outside the lazy-loaded use-package org-roam :config block and into
with-eval-after-load 'org
- Changed hook to trigger for ANY org-done-keyword (DONE, CANCELLED,
etc.) instead of just "DONE"
- Updated hook to only trigger on non-done → done transitions using
org-last-state, preventing duplicate copies when changing between
done states (e.g., DONE → CANCELLED)
- Added docstrings to org-roam helper functions to fix checkdoc linter
warnings
- Created comprehensive ERT test suite with 10 tests covering:
* Hook registration before org-roam loads (lazy-loading fix)
* Transitions to done states (nil→DONE, TODO→DONE, IN-PROGRESS→DONE,
WAITING→CANCELLED)
* Non-triggering cases (done→done, transitions to non-done states)
Diffstat (limited to 'ai-prompts')
0 files changed, 0 insertions, 0 deletions
