From 40303246cb1a6d21621d8898a41ed7d4675fc3f3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 24 May 2026 01:00:59 -0500 Subject: 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. --- modules/org-config.el | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 -- cgit v1.2.3