In fido-vertical-mode, let C-s and C-r recover their original use

Fido-mode is meant for ido-mode emulation, so it makes some
sense C-r and C-s moves forward and backward in the list as
ido-mode once did.  The price to pay is losing easy access to
isearch-backward/forward in completions.  In fido-vertical-mode,
this price is unreasonably high given C-p and C-n are the
natural bindings for moving about in the vertical list.

* lisp/icomplete.el (icomplete-fido-mode-map): Disable C-s and C-r
in fido-vertical-mode.
This commit is contained in:
João Távora 2026-04-29 10:06:03 +01:00
parent 4477ade0fa
commit 7de1d99d3a

View file

@ -489,8 +489,10 @@ if that doesn't produce a completion match."
"C-m" #'icomplete-fido-ret
"DEL" #'icomplete-fido-backward-updir
"M-j" #'icomplete-fido-exit
"C-s" #'icomplete-forward-completions
"C-r" #'icomplete-backward-completions
"C-s" `(menu-item "" icomplete-forward-completions
:filter ,(lambda (x) (unless fido-vertical-mode x)))
"C-r" `(menu-item "" icomplete-backward-completions
:filter ,(lambda (x) (unless fido-vertical-mode x)))
"<right>" #'icomplete-forward-completions
"<left>" #'icomplete-backward-completions
"C-." #'icomplete-forward-completions