selectrum: use orderless by default

This commit is contained in:
Itai Y. Efrat 2021-05-01 14:38:54 +03:00
parent 6dfc32441d
commit c1cbfa03f7
3 changed files with 8 additions and 10 deletions

View file

@ -23,8 +23,8 @@ TODO
#+end_quote #+end_quote
** Module Flags ** Module Flags
+ ~+prescient~ Enables prescient filtering and sorting for Selectrum searches. + ~+prescient~ Enables prescient filtering and sorting for Selectrum searches
+ ~+orderless~ Enables orderless filtering for Selectrum searches. instead of orderless.
** Plugins ** Plugins
[[https://github.com/raxod502/selectrum][selectrum]] [[https://github.com/raxod502/selectrum][selectrum]]
@ -32,8 +32,8 @@ TODO
[[https://github.com/oantolin/embark/][embark]] [[https://github.com/oantolin/embark/][embark]]
[[https://github.com/oantolin/embark/][embark-consult]] [[https://github.com/oantolin/embark/][embark-consult]]
[[https://github.com/minad/marginalia][marginalia]] [[https://github.com/minad/marginalia][marginalia]]
[[https://github.com/raxod502/prescient.el][prescient]]* (~+prescient~) [[https://github.com/oantolin/orderless][orderless]] (unless ~+prescient~)
[[https://github.com/oantolin/orderless][orderless]]* (~+orderless~) [[https://github.com/raxod502/prescient.el][prescient]] (~+prescient~)
[[https://github.com/minad/consult/][consult-flycheck]] (~:checkers syntax~) [[https://github.com/minad/consult/][consult-flycheck]] (~:checkers syntax~)
* Prerequisites * Prerequisites

View file

@ -6,7 +6,7 @@
(setq selectrum-display-action nil (setq selectrum-display-action nil
selectrum-num-candidates-displayed 15 selectrum-num-candidates-displayed 15
selectrum-extend-current-candidate-highlight t) selectrum-extend-current-candidate-highlight t)
(unless (featurep! +orderless) (when (featurep! +prescient)
(setq completion-styles '(substring partial-completion))) (setq completion-styles '(substring partial-completion)))
:config :config
(setq selectrum-fix-vertical-window-height 17 (setq selectrum-fix-vertical-window-height 17
@ -55,7 +55,7 @@
`(orderless-without-literal . ,(substring pattern 1)))) `(orderless-without-literal . ,(substring pattern 1))))
(use-package! orderless (use-package! orderless
:when (featurep! +orderless) :when (not (featurep! +prescient))
:after selectrum :after selectrum
:init :init
(setq orderless-component-separator "[ &]" (setq orderless-component-separator "[ &]"

View file

@ -3,10 +3,8 @@
(package! selectrum :pin "093f7e96a323179ee2a68a5a674e7fa2c5d721b8") (package! selectrum :pin "093f7e96a323179ee2a68a5a674e7fa2c5d721b8")
(when (featurep! +prescient) (if (featurep! +prescient)
(package! selectrum-prescient :pin "ed2b762241bbea03e374dc9dcd4fbe207c6b2ea4")) (package! selectrum-prescient :pin "ed2b762241bbea03e374dc9dcd4fbe207c6b2ea4")
(when (featurep! +orderless)
(package! orderless :pin "87ab7e47e343285f7afd42779c78551332b8fd84")) (package! orderless :pin "87ab7e47e343285f7afd42779c78551332b8fd84"))
(package! consult :pin "e04a404c8d8ca137be2b3b7cf664a11712639c31") (package! consult :pin "e04a404c8d8ca137be2b3b7cf664a11712639c31")