feat: use fuzzy search in swiper, ignore order search in all others
Can switch this at runtime using hydra (C-o M).
This commit is contained in:
parent
1b386ae27f
commit
d37d733f5b
1 changed files with 7 additions and 6 deletions
13
config.org
13
config.org
|
|
@ -263,7 +263,7 @@ Fuzzy matching:
|
||||||
https://github.com/lewang/flx
|
https://github.com/lewang/flx
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
;; (use-package flx)
|
(use-package flx)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Ivy
|
** Ivy
|
||||||
|
|
@ -285,12 +285,13 @@ https://github.com/abo-abo/swiper
|
||||||
("C-x C-s" . wgrep-finish-edit)
|
("C-x C-s" . wgrep-finish-edit)
|
||||||
("C-q" . wgrep-abort-changes)
|
("C-q" . wgrep-abort-changes)
|
||||||
)
|
)
|
||||||
;; FYI: to enable fuzzy search everywhere, can be limited to certain commands
|
|
||||||
;; See: https://oremacs.com/swiper/#completion-styles
|
|
||||||
;; :init
|
|
||||||
;; (setq ivy-re-builders-alist
|
|
||||||
;; '((t . ivy--regex-fuzzy)))
|
|
||||||
:config
|
:config
|
||||||
|
(setq ivy-re-builders-alist
|
||||||
|
'(
|
||||||
|
(swiper . ivy--regex-fuzzy)
|
||||||
|
(t . ivy--regex-ignore-order)
|
||||||
|
)
|
||||||
|
)
|
||||||
(setq ivy-use-virtual-buffers t) ;; Add recent files + bookmarks to ivy-switch-buffer
|
(setq ivy-use-virtual-buffers t) ;; Add recent files + bookmarks to ivy-switch-buffer
|
||||||
(setq ivy-count-format "(%d/%d) ") ;; Style to use for displaying current candidate count
|
(setq ivy-count-format "(%d/%d) ") ;; Style to use for displaying current candidate count
|
||||||
(ivy-mode)
|
(ivy-mode)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue