Commit graph

42 commits

Author SHA1 Message Date
Itai Y. Efrat
23a47acc06 selectrum: set manual preview to all grep variants 2021-07-25 02:50:42 +03:00
Itai Y. Efrat
a52b9cf686 selectrum: change embark-consult-preview-at-point...
to consult-preview-at-point following upstream
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
c349a0a046 selectrum: remove automatic initialisms for M-x etc
Doesn't work if we want to use selectrum highlighting optimizations, see
raxod502/selectrum#539.

Also document `SPC /` being slow.
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
e2f1783589 selectrum: pass target to embark-action-indicator
function spec changed upstream
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
5656e397de selectrum: rework orderless style dispatchers
- make all markers both prefixes and suffixes
- add `\`` affix for initialism
- add initialism matching to be on by default in `symbol` and `command`
- category completions
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
4e74a221cc selectrum: rework consult previews
- add `C-M-j` and `C-M-k` as preview scrolling keys
- add `consult-theme` to functions that don't get previewed
  automatically (also it works now)
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
f372f3aa2c selectrum: reorganize consult use-package! 2021-07-25 02:50:42 +03:00
Itai Y. Efrat
1fe0ad318b selectrum: improve :tools lookup integration
- move `consult-xref` stuff to `:tools lookup` where it belongs
- add selectrum functionality where possible, document what's beyond the
  scope of this PR
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
34bc993a3a selectrum: remove marginalia-annotators
obsolete variable, and set to `heavy` by default now anyway
2021-07-25 02:49:41 +03:00
Itai Y. Efrat
8957f02ab2 selectrum: improve wgrep
- add `:demand t` to `embark-consult` so it works on first call
- add `C-c C-e` to `consult-grep`
2021-07-25 02:49:41 +03:00
Edmund Miller
341343308a feat(selectrum): Add wgrep 2021-07-25 02:49:41 +03:00
Itai Y. Efrat
51a9a628b3 selectrum: eagerly load embark 2021-07-25 02:49:41 +03:00
Itai Y. Efrat
53e4e8c4d8 selectrum: refactor orderless use-package 2021-07-25 02:49:41 +03:00
Itai Y. Efrat
56d6dc5e77 selectrum: refactor orderless configuration
- unify `setq`'s
- move style dispatch functions into the `use-package`,
  rename them to follow doom conventions
2021-07-25 02:49:41 +03:00
Itai Y. Efrat
c1cbfa03f7 selectrum: use orderless by default 2021-07-25 02:49:41 +03:00
Itai Y. Efrat
6dfc32441d selectrum: improve file category commands...
now when pressing backspace on `/`, the input will go up one directory.
2021-07-25 02:49:41 +03:00
Gerry Agbobada
e181318885 Setup consult as completion-in-region fallback
This allows `corfu` users to enable corfu and let it noop when _not_ using a graphical display.

Having the function setup in `init` means company can properly override it when it’s activated later.
2021-07-25 02:49:41 +03:00
James Conroy-Finn
19c07444e7 selectrum: Replace obsolete selectrum-active-p
https://github.com/raxod502/selectrum/pull/521
2021-07-25 02:49:41 +03:00
Itai Y. Efrat
ff9a15e683 selectrum: rework live-previews
- for the slow consult functions it's bound to `C-SPC`
- for the rest of them the current approach wasn't working out great so
  it's removed for the time being.
2021-07-25 02:49:41 +03:00
Itai Y. Efrat
b9e34835c7 selectrum: update bindings 2021-07-25 02:49:41 +03:00
Itai Y. Efrat
7e51f98b3f selectrum: add C-SPC binding (half works) 2021-07-25 02:49:41 +03:00
Itai Y. Efrat
2cae7455fd selectrum: deactivate slow consult previews
deactivate previews for:
- consult-bookmark
- consult-recentf-file
2021-07-25 02:49:41 +03:00
Sebastian Sturm
a51c03900b Set up consult-xref if selectrum is enabled 2021-07-25 02:49:41 +03:00
Itai Y. Efrat
dc5442f78f selectrum: consult-recent-files now works on startup
consult doesn't turn on refentf-mode by itself, you need to do it
manually.
It works, but is very slow on first try.
2021-07-25 02:49:41 +03:00
Itai Y. Efrat
1b74d822c3 selectrum: orderless now works 2021-07-25 02:49:41 +03:00
Itai Y. Efrat
3c55105622 selectrum: annotate persp-switch-to-buffer 2021-07-25 02:49:40 +03:00
Itai Y. Efrat
1d43c733ea selectrum: fix marginalia not loading on +prescient
`:after selectrum` is unnecessary anyway
2021-07-25 02:49:40 +03:00
Bruce D'Arcus
261927e9fb add orderless style dispatchers
Adds style dispatchers, with the examples on the orderless README.

https://github.com/oantolin/orderless#style-dispatchers
2021-07-25 02:49:40 +03:00
Edmund Miller
deed316283 fix(selectrum): Set max window height to 17
This mimics ivy now
2021-07-25 02:49:40 +03:00
Edmund Miller
74b100cd54 fix(selectrum): Apply changes from minad's review
selectrum-fix-minibuffer-height has been deprecated.

The selectrum-refine-candidates-function should not be set. Only
selectrum-highlight-candidates-function is necessary in order to get
highlighting, when orderless-skip-highlighting is set.

Co-authored-by: minad <mail+gh@daniel-mendler.de>
2021-07-25 02:49:40 +03:00
Edmund Miller
5216ba411f style(selectrum): Alphabetize and align binds 2021-07-25 02:49:40 +03:00
Edmund Miller
a1293a076b feat(selectrum): Add consult-mark 2021-07-25 02:49:40 +03:00
Edmund Miller
bc13b4a5c2 feat(selectrum): Add bookmark command 2021-07-25 02:49:40 +03:00
Edmund Miller
d47f0d6ab6 feat(selectrum): Set window height to match ivy 2021-07-25 02:49:40 +03:00
Edmund Miller
b4e1b2130c refactor(selectrum): Move evil bindings where they belong 2021-07-25 02:49:40 +03:00
Edmund Miller
d760474e1d fix(selectrum): Move orderless/selectrum config...
to be only under `use-package! orderless`
2021-07-25 02:49:40 +03:00
Edmund Miller
3afb712452 fix(selectrum): Move prescient out of nested use-package 2021-07-25 02:49:40 +03:00
Edmund Miller
42b3184eae feat(selectrum): Add config from Townk's private config
Co-authored-by: Townk <thiago@rapinialves.com>
2021-07-25 02:49:40 +03:00
Jethro Kuan
a0ff8d42c1 lazy-load embark 2021-07-25 02:49:40 +03:00
Jethro Kuan
f4517d890f set prescient things on selectrum-mode 2021-07-25 02:49:40 +03:00
Jethro Kuan
65c153796e Add selectrum project search 2021-07-25 02:49:40 +03:00
Jethro Kuan
21a8694727 add selectrum module 2021-07-25 02:49:40 +03:00