diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-15 23:23:20 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-15 23:23:20 -0500 |
| commit | fcf6eac37934c3e2d1dbe68776c967ad9194c0ac (patch) | |
| tree | 84f74a2a3dc537c1e2af1ba9111c5e78351af33c /modules/selection-framework.el | |
| parent | 37f00dcbe5b400a968f63c4a27664ff8eee6030a (diff) | |
| download | dotemacs-fcf6eac37934c3e2d1dbe68776c967ad9194c0ac.tar.gz dotemacs-fcf6eac37934c3e2d1dbe68776c967ad9194c0ac.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.
Diffstat (limited to 'modules/selection-framework.el')
| -rw-r--r-- | modules/selection-framework.el | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/modules/selection-framework.el b/modules/selection-framework.el index b136ad154..a567e8003 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)) |
