Commit graph

69 commits

Author SHA1 Message Date
Itai Y. Efrat
f9e1c99b2b completion/selectrum -> completion/vertico, part 1
- Use `vertico` as default completion engine
- Drop `selectrum` and `selectrum-prescient` support
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
dc6da589be selectrum: fix false positive marginalia annotation...
for `flycheck-error-list-set-filter`.
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
29c49f727e selectrum: use consult-completing-read-multiple 2021-07-25 02:50:42 +03:00
Itai Y. Efrat
bc9d2bf3a4 selectrum: better completion-in-region-function
`consult-completion-in-region` isn't meant to be used without a vertical
completion framework
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
d86375a468 selectrum: add icon support
Use the package `all-the-icons-completion` to add icons to vertical
completion buffers.
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
d3eff82b9d selectrum: add experimental vertico flag 2021-07-25 02:50:42 +03:00
Itai Y. Efrat
78955d8a64 selectrum: add preview debounce for consult-theme 2021-07-25 02:50:42 +03:00
Itai Y. Efrat
2e6a04e536 selectrum: remove embark export/collect popup rules
They don't seem to be necessary anymore, and cause issues with window
opening logic when clicking on links in exported grep buffers.
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
7c313fbac2 selectrum: autoload +selectrum/backward-updir...
and make it independent of selectrum
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
336ad46c47 selectrum: clean up selectrum config
- remove unnecessary configuration of `selectrum` and
  `selectrum-prescient`
- fix type of `selectrum-fix-vertical-window-height`
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
3283acbde9 selectrum: use default values for consult async timers
unclear why `consult-async-input-(debounce|throttle)` were set to custom
higher values in the first place.
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
573bd73411 selectrum: annotate more functions 2021-07-25 02:50:42 +03:00
Yoav Marco
540c523023 Selectrum: add embark action to open file in new workspace 2021-07-25 02:50:42 +03:00
Itai Y. Efrat
ebd72b715e selectrum: remove some bindings
- the embark actions use packages that aren't installed or don't work
- the selectrum minibuffer bindings use the super key, which will
  probably conflict with tiling window managers
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
c056e718a8 selectrum: don't override embark-target-finders...
rather, modify it by inserting `+selectrum-embark-target-package!` in the
correct position. overriding it with `setq` is a bad idea since it might
be modified by other packages beforehand, or changed upstream later on.
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
e5e75e8dc5 selectrum: override embark-package-map with doom...
related functions
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
e5f3166caf selectrum: add embark target for package! statements 2021-07-25 02:50:42 +03:00
Itai Y. Efrat
8aea99c770 selectrum: rework setq's for selectrum use-package
- display all candidates that fit, displaying only 15 leaves a gap
- move all of them to `:init` since they can be there
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
8c75e07497 selectrum: reorganize keybinding locations
- bind to `minibuffer-local-map` instead of `selectrum-minibuffer-map`
  when possible.
- move bindings and remaps to be under their relevant `use-package!`
  statements.
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
4359d96c4c selectrum: use consult-customize for preview keys 2021-07-25 02:50:42 +03:00
Itai Y. Efrat
f136521c19 selectrum: sudo-edit -> doom/sudo-find-file...
doom doesn't use `sudo-edit`
also update TODO with subsequent marginalia tasks
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
f29f6beec2 selectrum: embark changes...
- move `marginalia-cycle` binding to `M-A` as it doesn'r work as an
embark action.
- add popup rule to Embark Collect buffers
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
36faa0c258 selectrum: bind embark-act to SPC a and C-;...
not final, might change in the review
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
14d6613192 selectrum: refactor consult stuff
- use `consult-preview-at-point-mode` instead of `consult-preview-minor-mode`
- better consult preview function detection in `+selectrum/embark-preview`
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
188fc09d72 selectrum: improve SPC b b
- Now uses a consult backend
- has buffer preview, per workspace narrowing with `$n SPC`
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
23a63ba5c4 selectrum: generalize +selectrum/embark-wgrep
now tries to open a writable export of the same vein.
add exports to `wdired` from `find-file` and `occur-edit` from `consult-line`.
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
308c6798d3 selectrum: drop foo! orderless style dispatch
conflicts with `!` final macros.
also elaborate why we should drop the prescient flag
2021-07-25 02:50:42 +03:00
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