diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-24 01:00:59 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-24 01:00:59 -0500 |
| commit | 40303246cb1a6d21621d8898a41ed7d4675fc3f3 (patch) | |
| tree | 4b05b22130af3d46fac161607bfc1d44d97d2509 /modules | |
| parent | 31dc4b9ed13a6f8e417f82ada8329729997828c9 (diff) | |
| download | dotemacs-40303246cb1a6d21621d8898a41ed7d4675fc3f3.tar.gz dotemacs-40303246cb1a6d21621d8898a41ed7d4675fc3f3.zip | |
feat(org): label the C-; O org prefix in which-key
The C-; O prefix (cj/org-map) had no which-key labels, so the popup just showed raw command names, and nothing at all for the d (finalize-task) binding. I added labels for the whole prefix, including the r/c table sub-prefixes. The two org-show-all bindings are labeled "cancel sparse tree" (S) and "cancel todo tree" (T) so the popup shows what each one cancels rather than two identical "show all" entries.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/org-config.el | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/org-config.el b/modules/org-config.el index fa1ca78e..a2615b0c 100644 --- a/modules/org-config.el +++ b/modules/org-config.el @@ -419,6 +419,28 @@ gains a date-only CLOSED line." (keymap-set cj/org-map "d" #'cj/org-finalize-task) +;; which-key labels for the C-; O org prefix. Registered lazily so this +;; module's load doesn't depend on which-key being present. +(with-eval-after-load 'which-key + (which-key-add-keymap-based-replacements cj/org-map + "n" "narrow to subtree" + "N" "widen" + ">" "narrow forward" + "<" "narrow backward" + "s" "sparse tree (match)" + "S" "cancel sparse tree" + "t" "todo tree" + "T" "cancel todo tree" + "R" "reveal" + "C" "clear element cache" + "d" "finalize task (dated)" + "r" "table row" + "r i" "insert row" + "r d" "kill row" + "c" "table column" + "c i" "insert column" + "c d" "delete column")) + ;; ------------------------------ Org Keybindings ------------------------------ ;; which-key labels for org keymaps |
