From c38889aa4a2696df09d9f29ef9fae20335780f1d Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Fri, 15 May 2026 00:47:27 -0500 Subject: refactor(org-noter-config): rebind insert-note to n; sync to angle brackets `cj/org-noter-insert-note-dwim' is the most-used action in a noter session; it deserves the doubled-prefix letter. Move it from `C-; n i' to `C-; n n'. Sibling-stepping moves off `n'/`p' (which were sync-next / sync-prev) onto the angle-bracket pair `>'/`<' to free up `n' and to read more naturally as direction. `.' stays as sync-current-note. Updated `which-key' labels to match. Four new ERT tests in `tests/test-org-noter-config-keymap.el' lock the keymap shape so a casual edit doesn't silently drift the layout. --- modules/org-noter-config.el | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'modules') diff --git a/modules/org-noter-config.el b/modules/org-noter-config.el index 0ba31bf7..ca8432a2 100644 --- a/modules/org-noter-config.el +++ b/modules/org-noter-config.el @@ -288,10 +288,14 @@ From a PDF/EPUB: starts org-noter session if inactive, then inserts note." ;;; ----------------------------- Org-Noter Keymap ----------------------------- (defvar-keymap cj/org-noter-map - :doc "Keymap for org-noter operations." - "i" #'cj/org-noter-insert-note-dwim - "n" #'org-noter-sync-next-note - "p" #'org-noter-sync-prev-note + :doc "Keymap for org-noter operations. +Insert-note (the most-used action) sits on the doubled-prefix +letter `n' so the binding reads as `C-; n n'. Sibling-stepping +moved off `n'/`p' to the angle-bracket pair `>'/`<' to free up `n' +and to read more naturally as direction." + "n" #'cj/org-noter-insert-note-dwim + ">" #'org-noter-sync-next-note + "<" #'org-noter-sync-prev-note "." #'org-noter-sync-current-note "s" #'org-noter-create-skeleton "q" #'org-noter-kill-session @@ -302,9 +306,9 @@ From a PDF/EPUB: starts org-noter session if inactive, then inserts note." (with-eval-after-load 'which-key (which-key-add-key-based-replacements "C-; n" "org-noter menu" - "C-; n i" "insert note" - "C-; n n" "sync next note" - "C-; n p" "sync prev note" + "C-; n n" "insert note" + "C-; n >" "sync next note" + "C-; n <" "sync prev note" "C-; n ." "sync current note" "C-; n s" "headings from TOC" "C-; n q" "kill session" -- cgit v1.2.3