Commit graph

924 commits

Author SHA1 Message Date
Itai Y. Efrat
09add70efd feat(vertico): add embark-collect-snapshot binding
The C-c C-s binding mirrors the export and writable export bindings.

embark-export is used for type specific exports (such as buffers to an
ibuffer buffer), not for verbatim exports. This is most noticeable if
you want to export a variable list, which gets you to an apropos buffer.
if you just want a list of things to keep around,
embark-collect-snapshot is the tool for the job, but having it be only
on C-; S makes it harder to reach and less visible. C-c C-s is a nice
visible thing to have around.
2022-01-13 23:16:03 +02:00
Itai Y. Efrat
1e2d5485a9 bump: :completion vertico
iyefrat/all-the-icons-completion@a0f34d68cc -> iyefrat/all-the-icons-completion@9e7d456b09
minad/consult@cc8eff9578 -> minad/consult@0940ca0165
minad/marginalia@2fb2787bc3 -> minad/marginalia@9229d88ae4
minad/vertico@eedcb84786 -> minad/vertico@a8fe9a0b2e
oantolin/embark@e08899ef2e -> oantolin/embark@c9b26c2e18
2022-01-13 23:16:03 +02:00
Itai Y. Efrat
4f34635e04 refactor!(vertico): crm keybindings behaviour
BREAKING CHANGE: This commit changes the behaviour of the TAB and RET
keys in a consult-completing read multiple session, in order to make
them more intuitive. The behaviour is now:

- TAB: (unchanged) always select or deselect the current candidate, and
  if the candidate is selected, move the index to the next one (this
  allows for pressing TAB repeatedly to select multiple subsequent
  candidates).

- RET: If no candidates have been selected, select the current candidate
  and exit the completion session. If some have been selected, disregard
  the current candidate and exit.

- S-TAB: (new) like TAB, but the keeps the input.
2022-01-13 23:16:03 +02:00
Henrik Lissner
480d9fec28 feat(company): disable company in circe-mode
Fix: #5451
2021-12-15 15:18:11 +01:00
Henrik Lissner
3d50e36132 bump: :completion
abo-abo/swiper@6a8e5611f3 -> abo-abo/swiper@1c6b3da377
company-mode/company-mode@4c08ef4686 -> company-mode/company-mode@8b58e5895c
emacs-helm/helm@4fcb36f1b9 -> emacs-helm/helm@a246a9b278
ericdanan/counsel-projectile@06b03c1080 -> ericdanan/counsel-projectile@e30150792a
lewang/flx@647cb2f92f -> lewang/flx@e3b3f0533e
lewang/flx@647cb2f92f -> lewang/flx@e3b3f0533e
minad/consult@85008702de -> minad/consult@cc8eff9578
oantolin/embark@725794f013 -> oantolin/embark@e08899ef2e
raxod502/prescient.el@027c2137a8 -> raxod502/prescient.el@292ac9fe35
sebastiencs/company-box@156f65cfbf -> sebastiencs/company-box@f9cbbc7df8
tumashu/ivy-posframe@9c83828233 -> tumashu/ivy-posframe@5d9420252c
tumashu/posframe@f97c4aff2c -> tumashu/posframe@3b1dc400d2

Fix: tumashu/ivy-posframe#114
Close: #5869
2021-12-14 01:21:33 +01:00
Itai Y. Efrat
39ed5eb9ec bump: :completion vertico
minad/consult-flycheck@92b259e6a8 -> minad/consult-flycheck@0ad7e8ff15
minad/consult@57dc1adfdc -> minad/consult@85008702de
minad/marginalia@678b6528f3 -> minad/marginalia@2fb2787bc3
minad/vertico@75f33e3620 -> minad/vertico@eedcb84786
oantolin/embark@5b34b2b603 -> oantolin/embark@725794f013
oantolin/orderless@62f71c34ba -> oantolin/orderless@1ccf74ffdb

Remove +vertico-embark-vertico-indicator as it has been implemented upstream
2021-12-13 01:18:11 +01:00
Henrik Lissner
6130caa621 feat(vertico): remap evil-show-registers to consult-register
A follow up to 49a464a.

Fix: #5753
Ref: 49a464a870
2021-11-21 15:37:11 +01:00
Henrik Lissner
49a464a870 fix(default): missing evil-ex-registers for non-ivy users
It was `evil-show-registers' that we wanted, not
`evil-ex-registers' (which never existed in the first place). Folks who
did not have :completion ivy enabled (e.g. vertico and helm users) would
see 'commandp, evil-ex-registers' errors when pressing `SPC i r`. Folks
who had it enabled would transparently invoke `counsel-evil-registers'
instead (because it was remapped).

Fix: #5753
2021-11-21 15:34:57 +01:00
Henrik Lissner
daf8d278d0 fix(lib): doom/help-search
Due to malformed ripgrep command (no whitespace between "." and extra
arguments).

Fix: #5758
2021-11-20 00:55:22 +01:00
Itai Y. Efrat
a310fb4a77 bump: :completion vertico
minad/consult@39f41edda6 -> minad/consult@57dc1adfdc
minad/marginalia@09d8ab38a5 -> minad/marginalia@678b6528f3
minad/vertico@0df38cf1d7 -> minad/vertico@75f33e3620
oantolin/embark@d09fff2da7 -> oantolin/embark@5b34b2b603

Update vertico-repeat configuration due to upstream changes.
2021-11-19 00:31:13 +02:00
Itai Y. Efrat
5b630e1723 feat(vertico): add consult-dir package 2021-11-19 00:31:12 +02:00
Itai Y. Efrat
8a2b7badc7 fix(vertico): remove unneeded manual preview...
from +vertico/search-symbol-at-point.

It only acts on buffers so it shouldn't have been there in the first
place.
2021-11-19 00:29:51 +02:00
Itai Y. Efrat
c8199c5c20 fix(vertico): remove noise from which-key indicator
Embark adds easier prefix-argument and digit-argument insertion in
embark-act, but these clog up the space in the which-key indicator

Also update the embark-become test to the new target format.
2021-11-19 00:29:51 +02:00
Itai Y. Efrat
423939033f fix(vertico): which-key buffer on embark prompter
The which-key buffer now disappears immediately on using
embark-completing-read-prompter, instead of only after further user
input.
2021-11-19 00:29:49 +02:00
Itai Y. Efrat
6e629c1c53 refactor(vertico): move defadvice!'s to config.el
The vast majority of Doom modules have their defadvice! statements in
their config.el files, and not their autoloads. Since these don't need
to be autoloaded to function, we move them for better consistency.
2021-11-18 22:41:40 +02:00
Henrik Lissner
bae7ab0d8d fix(ivy): remove hard dependency on flx
Ivy tries to load flx to determine if fuzzy capabilities should be
enabled by default, causing #5681. Let's not do that.

Fix: #5681
Close: #5690
2021-10-29 14:48:32 +02:00
Itai Y. Efrat
6eb52a8536 revert: fix(vertico): add +vertico/find-file-in stopgap
This is no longer needed since #5494 was fixed.

Ref #5494
Revert 8b3b39532d
2021-10-10 11:17:39 +03:00
Itai Y. Efrat
04e96c6faf bump: :completion vertico
iyefrat/all-the-icons-completion@9650041854 -> iyefrat/all-the-icons-completion@a0f34d68cc
minad/consult@dc6e455861 -> minad/consult@166e3b03c3
minad/marginalia@cb1d3ba604 -> minad/marginalia@fbd2f378f5
minad/vertico@0df75c0bbc -> minad/vertico@cd3c400aac
oantolin/embark@1492aefc00 -> oantolin/embark@8a0b80c6e6

Add --null to consult-ripgrep-args to comply with upstream changes to
filename detection.

Update +vertico-embark-which-key-indicator.

Fix #5494
Fix #5547
2021-10-10 10:46:14 +03:00
Henrik Lissner
c0390c86d0 bump: :completion company
company-mode/company-mode@1887974e7a -> company-mode/company-mode@4c08ef4686
2021-10-06 11:40:50 +02:00
Itai Y. Efrat
8b3b39532d fix(vertico): add +vertico/find-file-in stopgap
Temporarily disable embark actions (and as a result, marginalia
annotations) for +vertico/find-file-in and functions that use it, since
because currently the embark actions don't inherit the intended
default-directory, embark actions might run unintentional destructive
operations if there are files with the same name in the
default-directory and the directory +vertico/find-file-in is run on.

Ref #5494
2021-09-23 14:55:58 +02:00
Itai Y. Efrat
f50bfdc703 bump: :completion vertico
minad/consult@a07ca38331 -> minad/consult@dc6e455861
minad/vertico@81a4b35f8d -> minad/vertico@0df75c0bbc
oantolin/embark@3a90a3e3c6 -> oantolin/embark@1492aefc00
2021-09-23 14:55:58 +02:00
Itai Y. Efrat
34f76c8a75 fix(vertico): +vertico/switch-workspace-buffer
- fix a paren error in the function that caused the buffers to be sorted
  alphabetically and not by recency
- refactor the workspace buffer sources to use consult--buffer-query,
  that way we get niceties like the current buffer being last

Fix #5366
2021-09-23 14:55:58 +02:00
Itai Y. Efrat
dda5f558b2 fix(vertico): adapt to targets changing to plists
embark targets changed internally to plists a while back. This didn't
really seem to break anything but it's best to be up to date with the
upstream representation.
2021-09-23 14:55:58 +02:00
Itai Y. Efrat
0888c024db docs(vertico): fix added keybindings table
C-n and C-p aren't added by doom, so they shouldn't be listed there.
2021-09-15 01:42:19 +03:00
Itai Y. Efrat
a612220369 refactor!(vertico): evil minibuffer keybindings
BREAKING CHANGE: remove +vertico/(next|previous)-candidate-preview.

BREAKING CHANGE: Move vertico-(next|previous)-group to C-M-j/k now that

C-S-j/k now default back to scrolling up and down pages.

Update docs to reflect these changes.
2021-09-15 01:41:37 +03:00
Itai Y. Efrat
6022579231 refactor(vertico): +vertico-consult-fd-args
Initialize as nil with a defvar, and only change the value if the user
hasn't set it themselves.
2021-09-15 01:07:06 +03:00
Itai Y. Efrat
7762386e52 bump: :completion vertico
minad/consult@105a1ac501 -> minad/consult@a07ca38331
minad/marginalia@c6ca58bea8 -> minad/marginalia@cb1d3ba604
oantolin/embark@19145d5a33 -> oantolin/embark@3a90a3e3c6
oantolin/orderless@1a7011ac9c -> oantolin/orderless@62f71c34ba
2021-09-15 01:03:11 +03:00
Itai Y. Efrat
3991d2ce77 docs(vertico): explain how shadow paths work 2021-09-15 01:03:11 +03:00
Itai Y. Efrat
9241a4d709 refactor(vertico): file completion backspace
Switch from the homemade +vertico/backward-updir to the upstream
vertico-directory-delete-char. The former has the nice feature of
traversing up abbreviated paths, but this comes at the cost of not being
able to fully erase the path (since the buck stops at /), and
unintentional directory moving in commands such as +vertico/find-file-in
which causes issues. Overall this minor convenience is not worth it, so
the vertico-directory-delete-char behaviour of just deleting up to the
previous / is preferred instead.
2021-09-15 01:03:11 +03:00
Itai Y. Efrat
161d48c2a9 refactor(vertico): embark package actions map
- use new variable +vertico/embark-doom-package-map instead of
overriding embark-package-map
- define it with embark-define-keymap in order to inherit from the
default keymap
2021-09-15 01:03:11 +03:00
Itai Y. Efrat
9d44b3510a fix(vertico): +vertico/jump-list requires consult 2021-09-15 01:03:11 +03:00
Itai Y. Efrat
f536103af6 fix(vertico): package target finder
now returns nil instead of erroring out when it can't find a paren in
the buffer

Co-authored-by: Leo Okawa Ericson <git@relevant-information.com>
2021-09-15 01:03:11 +03:00
Itai Y. Efrat
1f3ac1eb77 nit(vertico): fix whitespace 2021-09-15 01:03:11 +03:00
Itai Y. Efrat
934ad07f23 feat(vertico): add magit-status embark action 2021-09-15 01:03:11 +03:00
Itai Y. Efrat
9e3a5df15d fix(vertico): feature gate embark workspace action 2021-09-15 01:03:11 +03:00
Itai Y. Efrat
c832eddc9d docs(vertico): explain symbol class annotations 2021-09-15 01:03:11 +03:00
Itai Y. Efrat
fc163b16c9 feat(vertico): use basic completion for remotes
Close: #5313

Co-authored-by: Stefan Lendl <ste.lendl@gmail.com>
2021-09-15 01:03:11 +03:00
Itai Y. Efrat
2c431aae0e fix(vertico): +vertico/find-file-in...
allow the creation of new files if the input doesn't match any existing
ones.
2021-09-14 20:44:55 +03:00
Itai Y. Efrat
4b0b7f55c8 docs(vertico): document new consult grep behavior
- explain how consult translates regexp matches in the readme
- add doom doctor checks for pcre support
2021-09-14 20:44:54 +03:00
Itai Y. Efrat
0a69ca957a refactor(vertico): rename which key indicator
rename +vertico/embark-which-key-indicator to
+vertico-embark-which-key-indicator, since it's not interactive
2021-09-14 20:38:40 +03:00
Itai Y. Efrat
c0fd2c37cd feat(vertico): add char-fold style dispatcher
affixing with % uses char-fold-to-regexp on the input
2021-09-14 20:38:40 +03:00
Itai Y. Efrat
26014435b2 feat(vertico): colorize vertico candidate on act 2021-09-14 20:38:40 +03:00
Itai Y. Efrat
c10d277713 refactor(vertico): all-the-icons-completion recipe
The package has been accepted to melpa
2021-09-14 20:38:40 +03:00
Itai Y. Efrat
940f66fa89 bump: :completion vertico
iyefrat/all-the-icons-completion@d1d4b2f0df -> iyefrat/all-the-icons-completion@9650041854
minad/consult@69bbd213dc -> minad/consult@105a1ac501
minad/marginalia@1123544536 -> minad/marginalia@c6ca58bea8
minad/vertico@9de6709cdd -> minad/vertico@81a4b35f8d
oantolin/embark@1a7e6b5561 -> oantolin/embark@19145d5a33
oantolin/orderless@1e84120a28 -> oantolin/orderless@1a7011ac9c

- Adapt consult async commands to new consult-x-args format instead of
  consult-x-command.
- Change regepx in +vertico-file-search to emacs instead of pcre,
  because consult switched to using only emacs regexps
- Move to new embark-indicators variable, and replace
  embark-mixed-indicator with +vertico/embark-which-key-indicator to be
  compatible with future changes
- Adapt Doom's optional usage of fd to new consult command format
2021-09-14 20:38:40 +03:00
Itai Y. Efrat
c3fc7da5f1 docs(vertico): add more explanations to readme
- add explanation for consult async commands
- expand configuration section to use subheadings
- add section on overriding consult-customize settings

Close #5291
2021-09-14 20:38:40 +03:00
Itai Y. Efrat
4613c74d8b fix(vertico): prefix-help-command
- move the setq to the embark use-package where it belongs
- also set which-key-use-C-h-commands to nil, otherwise sometimes
  which-key will override the prefix-help-command setting
2021-09-14 20:38:40 +03:00
Henrik Lissner
27e1ed7383 bump: :completion ivy helm company
abo-abo/swiper@56139df678 -> abo-abo/swiper@6a8e5611f3
company-mode/company-mode@d77184094b -> company-mode/company-mode@1887974e7a
emacs-helm/helm@42e28369d5 -> emacs-helm/helm@4fcb36f1b9
raxod502/prescient.el@4a0f540579 -> raxod502/prescient.el@027c2137a8
sebastiencs/company-box@c8a867163b -> sebastiencs/company-box@156f65cfbf

Close #5419
2021-09-14 14:30:06 +02:00
Henrik Lissner
265e19a405 fix(vertico): +vertico/jump-list failing to jump
Prior to this fix this command would error out because of incorrect
expectations wrt consult--read's return value.
2021-08-21 03:29:13 -04:00
Henrik Lissner
a2a128d3a5 tweak(vertico): prefix-help-command = embark-prefix-help-command
Embark's interface of prefix-help-command is so vastly superior to the
original prefix-help-command that it makes good sense that it be a
default.
2021-08-05 12:54:37 -04:00
Henrik Lissner
045ea7460d nit: revise and reformat code comments 2021-08-04 01:53:12 -04:00