diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 15:34:17 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 15:34:17 -0500 |
| commit | 0b5ada69861b338d93ee947645e7fa1ed12fca00 (patch) | |
| tree | 5dd7025dcf94f4579cedd98417f44cbf9ce189c9 | |
| parent | c47ea8ce8ccde21af5d0f8dc1c1d147d1bb48113 (diff) | |
| download | dotemacs-0b5ada69861b338d93ee947645e7fa1ed12fca00.tar.gz dotemacs-0b5ada69861b338d93ee947645e7fa1ed12fca00.zip | |
chore(todo): add task to surface org narrowing + sparse-tree under C-; O
| -rw-r--r-- | todo.org | 42 |
1 files changed, 42 insertions, 0 deletions
@@ -272,6 +272,48 @@ Test surface: =cj/--video-file-p= happy/edge cases, the ffmpeg extract step (stub =call-process=), and the dispatch in =cj/transcribe-audio-at-point= against a video path. +** TODO [#C] Surface org narrowing + sparse-tree under =C-; O= :refactor: + +The narrowing and sparse-tree commands already exist in +=modules/org-config.el=, but they're bound only inside the +=:bind (:map org-mode-map ...)= block and scattered across `C-c' +shortcuts -- nothing in `cj/org-map' (`C-; O') surfaces them, so +which-key never shows them and discoverability is poor. + +Existing bindings worth promoting (org-config.el ~line 141-150): +- =C-\\= =org-match-sparse-tree= +- =C-c N= =org-narrow-to-subtree= +- =C-c >= =cj/org-narrow-forward= +- =C-c <= =cj/org-narrow-backwards= +- =C-c <ESC>= =widen= +- =<f2>= =org-reveal= (the reveal-narrowed-context command, + not org-reveal-config.el) + +Proposal: + +Add a sub-menu under `C-; O': + +- `C-; O n' -- narrow operations (sub-prefix) + - `n s' narrow to subtree + - `n e' narrow to element + - `n >' narrow forward sibling + - `n <' narrow backward sibling + - `n w' widen + +- `C-; O s' -- sparse-tree operations (sub-prefix) + - `s s' org-match-sparse-tree (by tag/property/todo match) + - `s t' show all TODOs + - `s p' show entries with a priority + - `s r' org-reveal (open the surrounding context of point) + +Add the which-key labels alongside. Keep the existing `C-c' +bindings as-is for muscle memory. + +Open question: should `cj/org-narrow-forward' / +`cj/org-narrow-backwards' have their own sub-letters under `n', or +just be under `n >' / `n <' as written above? The arrow-symbol +keys read naturally as "next/previous" so probably keep them. + ** TODO [#B] Investigate gptel-magit not working properly :bug: Wired up in =modules/ai-config.el= as three lazy entry points: |
