Commit graph

936 commits

Author SHA1 Message Date
Henrik Lissner
0e802f4653
bump: :completion
abo-abo/swiper@1c6b3da377 -> abo-abo/swiper@c97ea72285
company-mode/company-mode@8b58e5895c -> company-mode/company-mode@073aef72dd
emacs-helm/helm@a246a9b278 -> emacs-helm/helm@5b17313011
ericdanan/counsel-projectile@e30150792a -> ericdanan/counsel-projectile@40d1e1d4bb
minad/consult@2106eee75f -> minad/consult@473e6585c5
minad/marginalia@e9540a7b80 -> minad/marginalia@e63d27e6fb
minad/vertico@509ca602c7 -> minad/vertico@a92b1e47ff
oantolin/embark@56e28c23d5 -> oantolin/embark@06d5caafd5
oantolin/orderless@ce462a63e3 -> oantolin/orderless@f2c78c4a60
raxod502/prescient.el@292ac9fe35 -> raxod502/prescient.el@c5295a9eec
tumashu/ivy-posframe@5d9420252c -> tumashu/ivy-posframe@533a8e368f
tumashu/posframe@3b1dc400d2 -> tumashu/posframe@c91d4d53fa
2022-03-30 17:32:47 +02:00
Henrik Lissner
8455bcf6b4
fix(ivy): omit hidden files in counsel-file-jump
385e60cd26 was a bit hasty. Rather than disregard all ignore files, we
should simply exclude projectile-globally-ignored-directories entries
from the file list. This is a stop-gap measure while I work on a better,
more general solution for all our :completion modules.

Amend: 385e60cd26
Ref: https://www.reddit.com/r/emacs/comments/tj0na6/moving_from_doom_to_vanilla/?utm_source=share&utm_medium=web2x&context=3
Ref: #6210
2022-03-30 17:32:41 +02:00
Henrik Lissner
385e60cd26
fix(ivy): include hidden files in counsel-file-jump
fd was omitted ignored/hidden files, which is inconsistent with
ripgrep's output (when fd is absent).

Ref: https://www.reddit.com/r/emacs/comments/tj0na6/comment/i1laya6/?utm_source=reddit&utm_medium=web2x&context=3
2022-03-22 02:13:17 +01:00
dvzubarev
614aefc339 tweak(vertico): ignore svn and hg dirs in file search 2022-03-19 16:38:00 +01:00
Henrik Lissner
89deac190d
fix(vertico): signature for +vertico/switch-workspace-buffer
An unused argument I forgot to remove.

Amend: 81629dc2ad
2022-02-17 21:17:39 +01:00
Henrik Lissner
81629dc2ad
feat(vertico): switch to buffer's workspace
When selecting a buffer in another workspace with
+vertico/switch-workspace-buffer, that workspace will be switched to,
instead of opening the buffer in the current workspace.
2022-02-17 21:14:27 +01:00
Henrik Lissner
72c7d07fb4
fix(vertico): 9 workspace limit in switch-workspace-buffer
+vertico/switch-workspace-buffer was hardcoded to only list buffers from
the first 9 workspaces. This removes that limit.

Minor catch: workspaces beyond 9 will use lower case a-z as narrowing
keys, followed by upper case A-Z. There will not be any valid narrowing
keys beyond 61 workspaces -- but who in the world would have that many?
2022-02-17 21:14:24 +01:00
Henrik Lissner
394f7be6c5 bump: :completion vertico
minad/consult@0940ca0165 -> minad/consult@2106eee75f
minad/marginalia@9229d88ae4 -> minad/marginalia@e9540a7b80
minad/vertico@a8fe9a0b2e -> minad/vertico@509ca602c7
oantolin/embark@c9b26c2e18 -> oantolin/embark@56e28c23d5
oantolin/orderless@1ccf74ffdb -> oantolin/orderless@ce462a63e3

- Marginalia introduced library annotations in
minad/marginalia@5e646cc (minad/marginalia#127), which opens us up to
  corner cases where decompression of library files (to retrieve their
  description) fails and brings down  vertico with it.
  marginalia--library-doc has been advised to suppress these errors.

Fix: #6099
Ref: minad/marginalia@5e646cc3f6
Ref: minad/marginalia#127
2022-02-10 21:07:20 +01:00
Daanturo
dacf38bad3 fix(vertico): let C-c C-e run existing embark-after-export-hook
Previously, +vertico/embark-export-write doesn't let embark execute
other added hooks in embark-after-export-hook.

Add the edit command at the end of the list because other hooks may
assume that the buffer isn't yet editable.
2022-01-30 20:42:05 +01:00
Paul Porfiroff
a922ff8837 fix(vertico): completion category of +default/find-file-under-here 2022-01-28 21:01:34 +01:00
Itai Y. Efrat
f42f923350 feat(vertico): add SPC s e to manual preview list 2022-01-13 23:16:03 +02:00
Itai Y. Efrat
6d31e392cd nit(vertico): lint embark-file-map bindings 2022-01-13 23:16:03 +02:00
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