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
Henrik Lissner
06392a723f
refactor: rename orig-fn arg in advice to fn
...
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
Daanturo
65950f3e91
feat(vertico): enable smart case for +vertico-file-search
...
Vanilla Emacs, Ivy, and Helm do this by default. Should be upstreamed.
Close #5322
2021-08-01 14:58:25 -04:00
Itai Y. Efrat
3af07d2500
fix(vertico): +vertico/embark-preview
bug
...
- replace obsolete `embark-default-action` with `embark-dwim`
- add `defvar` for `embark-quiet-after-action` to fix lexical var bug
2021-07-31 10:50:00 +03:00
Itai Y. Efrat
f7863f96f0
nit(vertico): sharpquote a quoted function
2021-07-31 10:49:00 +03:00
Itai Y. Efrat
19c40901f1
fix(vertico): +vertico/find-file-in
...
...
- require `consult` (`consult--directory-prompt` isn't autoloaded)
- set category to `'file`
2021-07-31 10:48:00 +03:00
Itai Y. Efrat
a23cb1fddf
fix(vertico): consult-recent-file
previews
...
Turning on `recentf-mode` in a `cmd!` (introduced in 97048e2
) means that
the `consult-customize` that turns off the previews doesn't work. This
is fixed by advising the function instead.
2021-07-31 10:47:00 +03:00
Itai Y. Efrat
859fc4e1b1
feat(vertico): improve marginalia annotations
...
- use `doom-project-root` in the annotation category
`project-file` (marginalia uses `project.el`)
- annotate more functions, alphabetize list
2021-07-31 10:46:00 +03:00
Itai Y. Efrat
4c3c027a96
feat(vertico): better crm interface
2021-07-31 10:43:00 +03:00
Itai Y. Efrat
d6fba19586
bump: :completion vertico
...
minad/consult@28f9ba8 -> minad/consult@69bbd21
minad/marginalia@a3a8edb -> minad/marginalia@1123544
minad/vertico@4a90297 -> minad/vertico@9de6709
oantolin/embark@be03ce9 -> oantolin/embark@1a7e6b5
iyefrat/all-the-icons-completion@24cdb3b -> iyefrat/all-the-icons-completion@d1d4b2f
update embark indicator to new format
2021-07-31 10:41:00 +03:00
Daanturo
e71d564387
Fix +vertico-file-search when separator is used
...
instead of the Perl style.
`concat` can't operate on characters.
2021-07-29 09:42:42 +07:00
Henrik Lissner
a6b6b6197b
fix(vertico): TAB bound to non-interactive function
2021-07-28 13:11:45 -04:00
Henrik Lissner
9d7338d4b8
fix(vertico): add +ivy/jump-list analogue
...
Fix 'SPC s j' for consult users.
2021-07-28 13:11:36 -04:00
Henrik Lissner
33b646826b
fix(vertico): add counsel-file-jump analogue
...
Fix 'SPC f F' / 'C-c f F' for vertico users
2021-07-28 12:54:23 -04:00
Henrik Lissner
551e5adf81
fix(vertico): unreachable function in autoloads
...
+ Rename +vertico--embark-target-package to
+vertico-embark-target-package-fn to conform to naming conventions,
and because it's not a private function anymore.
+ Fix +vertico-embark-target-package-fn's indentation.
Fix #5208
2021-07-28 12:43:05 -04:00
Henrik Lissner
fd844ea18d
fix(vertico): escape perl syntax in selection
...
+ Escape any special regexp characters in the active selection.
+ Change the async split character (#) to the first of %, @, !, &, or /
that is absent in the active selection (falling back to %
otherwise) (since consult doesn't recognize escaping for these
characters).
2021-07-28 12:37:47 -04:00
Henrik Lissner
ffcfb6d8b3
tweak(vertico): tune consult async timers
...
For a more responsive UX.
2021-07-28 12:03:42 -04:00
Henrik Lissner
d7a223493e
completion/vertico: consult-async-min-input = 2
...
Legitimate two-letter searches are common enough in codebases that
consult-async-min-input's default value of 3 catches me up more often
than not.
2021-07-26 02:56:46 -04:00
Henrik Lissner
97048e2db4
completion/vertico: lazily activate recentf-mode
...
This'll do for now.
2021-07-25 18:03:12 -04:00
Henrik Lissner
cac9158b36
completion/vertico: use fd for counsel-find
...
If available.
2021-07-25 18:02:46 -04:00
Henrik Lissner
b92caaa3c2
completion/vertico: reformatting
2021-07-25 15:47:58 -04:00
Henrik Lissner
cfcf7e0d03
Open embark grep buffers in popup
2021-07-25 15:47:58 -04:00
Itai Y. Efrat
c4a2b0bb26
vertico: require embark in +vertico/embark-export-write
...
needed now that embark is lazy loaded
2021-07-25 19:05:52 +03:00
Itai Y. Efrat
83858fcaf9
vertico: remove +fuzzy check in +vertico-file-search
...
Doesn't do anything, it's a leftover from when the function was ported
from the ivy module.
2021-07-25 11:50:45 +03:00
Itai Y. Efrat
beb0b445d8
vertico: prepare for merge...
...
- move TODO.org to discourse (https://discourse.doomemacs.org/t/vertico-module-tasklist/1386 )
- update README date
- add @iyefrat as maintainer
2021-07-25 02:56:03 +03:00
Itai Y. Efrat
e2cd827f96
vertico: add variable to set company completion styles
2021-07-25 02:52:04 +03:00
Itai Y. Efrat
a0e384fe8e
Bump :completion vertico
...
minad/consult@5fb6248 -> minad/consult@28f9ba8
minad/marginalia@d4c2028 -> minad/marginalia@a3a8edb
minad/vertico@e1faeb0 -> minad/vertico@4a90297
oantolin/embark@9d56be1 -> oantolin/embark@be03ce9
oantolin/orderless@2646dad -> oantolin/orderless@1e84120
2021-07-25 02:52:04 +03:00
Itai Y. Efrat
a4093e90fe
vertico: fix unused lexical variable error
2021-07-25 02:52:04 +03:00
Itai Y. Efrat
c12fb64c98
vertico: defer loading of embark and orderless
2021-07-25 02:52:04 +03:00