Suggest matches from history first #416
Answered
by
minad
max-arnold
asked this question in
Q&A
-
I never called My config: (use-package vertico
:init
;; (setq enable-recursive-minibuffers t)
(setq vertico-preselect 'first)
(setq completion-styles '(flex)
completion-ignore-case t
read-file-name-completion-ignore-case t
read-buffer-completion-ignore-case t
vertico-sort-function #'vertico-sort-history-alpha
completion-category-defaults nil
completion-category-overrides '((file (styles basic partial-completion))))
(vertico-mode)
(keymap-set vertico-map "RET" #'vertico-directory-enter)
(keymap-set vertico-map "DEL" #'vertico-directory-delete-char)
(keymap-set vertico-map "M-DEL" #'vertico-directory-delete-word)
(add-hook 'rfn-eshadow-update-overlay-hook #'vertico-directory-tidy)
)
(use-package marginalia
:init
(marginalia-mode))
|
Beta Was this translation helpful? Give feedback.
Answered by
minad
Dec 3, 2023
Replies: 1 comment 1 reply
-
The order is overridden by the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
minad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The order is overridden by the
flex
completion style here. I suggest you trysubstring
ororderless
instead, which preserve the candidate order. If you want fuzzy matching (while preserving the order) you can configure theflex
matching style in Orderless. Alternatively try out the Hotfuzz completion style, but be aware that Hotfuzz modifies the candidate order.