aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-15 23:23:20 -0500
committerCraig Jennings <c@cjennings.net>2026-06-15 23:23:20 -0500
commita24dac910de2ae639c1eaffafcbf56721c9bc5d5 (patch)
tree3f72027e9528d81d1e66a3130c8cb65798e4d94d
parentc3be268cb0834c86cf0389d2779a740cd52db9c4 (diff)
downloaddotemacs-a24dac910de2ae639c1eaffafcbf56721c9bc5d5.tar.gz
dotemacs-a24dac910de2ae639c1eaffafcbf56721c9bc5d5.zip
fix(vertico): Page-Up/Down scroll the candidate list, not history
<next>/<prior> weren't bound in vertico-map, so in a long completing-read they fell through and selected-then-dismissed the list. Bind them to vertico-scroll-up / vertico-scroll-down.
-rw-r--r--modules/selection-framework.el18
1 files changed, 11 insertions, 7 deletions
diff --git a/modules/selection-framework.el b/modules/selection-framework.el
index b136ad15..a567e800 100644
--- a/modules/selection-framework.el
+++ b/modules/selection-framework.el
@@ -37,13 +37,17 @@
(vertico-resize nil) ; Don't resize the minibuffer
(vertico-sort-function #'vertico-sort-history-alpha) ; History first, then alphabetical
:bind (:map vertico-map
- ("C-j" . vertico-next)
- ("C-k" . vertico-previous)
- ("C-l" . vertico-insert) ; Insert current candidate
- ("RET" . vertico-exit)
- ("C-RET" . vertico-exit-input)
- ("M-RET" . minibuffer-force-complete-and-exit)
- ("TAB" . minibuffer-complete))
+ ("C-j" . vertico-next)
+ ("C-k" . vertico-previous)
+ ("C-l" . vertico-insert) ; Insert current candidate
+ ("RET" . vertico-exit)
+ ("C-RET" . vertico-exit-input)
+ ("M-RET" . minibuffer-force-complete-and-exit)
+ ("TAB" . minibuffer-complete)
+ ;; Page-Up/Down scroll the candidate page instead of falling
+ ;; through to minibuffer history (which selected + dismissed).
+ ("<next>" . vertico-scroll-up)
+ ("<prior>" . vertico-scroll-down))
:init
(vertico-mode))