Commit graph

1039 commits

Author SHA1 Message Date
Itai Y. Efrat
986603063f refactor!(vertico): remove consult-preview-at-point-mode hook
BREAKING CHANGE: That function is only meant to be used in
the *Completions* buffer, which is only relevant if you're using embark
and consult without vertico. While it doesn't hurt, it's mostly unclear
why it's there in the first place when reading the modules
2022-12-01 04:01:13 +01:00
Itai Y. Efrat
b67e83f88e docs(vertico): fix outdated consult config var name 2022-10-29 02:45:31 +02:00
TEC
5ac2a5258b docs: change link format 2022-10-05 01:01:19 +02:00
Henrik Lissner
58fb83c98e
fix(company): completing-read interface on C-S-s
C-S-s while company is completing shoudl bring up the results in your
completion framework of choice (ivy, helm, vertico, etc), but failed to
do so for vertico (for any completion backend besides company-capf
perhaps).
2022-10-04 02:05:02 +02:00
Henrik Lissner
c994e3ed59
bump: :completion vertico
minad/consult@6319aec351 -> minad/consult@76aab86015
minad/marginalia@69442c2d94 -> minad/marginalia@7f5bf7818b
minad/vertico@2ad4619665 -> minad/vertico@8078b8cb94
oantolin/embark@5d0459d27a -> oantolin/embark@3add321d74
oantolin/orderless@8b9af2796f -> oantolin/orderless@6b86527b30
tumashu/vertico-posframe@7ca364d319 -> tumashu/vertico-posframe@46aa1dffd1
2022-09-20 02:26:51 +02:00
Henrik Lissner
6bd8cbf903
fix(vertico): relax doctor tests
consult--grep-lookahead-p throws an error if argv[0] can't be found, and
so will require if consult isn't installed (which would be redundant
with the package checks the doctor already does). To prevent misleading
backtraces here, I've suppressed the latter issue, but the former will
need attention later.
2022-09-16 17:33:44 +02:00
theschmocker
de2f538fd6 fix(ivy): ensure flx is loaded with (ivy +fuzzy)
Overriding `ivy--flx-featurep` here would always prevent flx from being
loaded and enabled---even if it were `t`---because ivy `require`s it in
`ivy--flx-featurep`'s initvalue. So instead, this sets the variable if
and only if it should be disabled. Because flx isn't installed when
+prescient is enabled, I've included that in the condition for disabling
ivy--flx-featurep as well

Fix: https://github.com/doomemacs/doomemacs/issues/6034
Amend: bae7ab0d8d
2022-09-16 01:26:36 +02:00
Matthieu Petiteau
ba859fcfc0 nit(vertico): add missing function docstring 2022-09-07 00:22:25 +02:00
Matthieu Petiteau
3694969dd4 nit(vertico): typo in docstring 2022-09-07 00:22:25 +02:00
Henrik Lissner
a5c80fcb4b
refactor: deprecate doom-private-dir for doom-user-dir
- Deprecates the doom-private-dir variable in favor of doom-user-dir.
- Renames the pseudo category for the user's module: :private -> :user.
- Renames the doom-private-error error type to doom-user-error.

Emacs uses the term "user" to refer to the "things" in user space (e.g.
user-init-file, user-emacs-directory, user-mail-address, xdg-user-dirs,
package-user-dir, etc), and I'd like to be consistent with that. It also
has the nice side-effect of being slightly shorter. I also hope
'doom-user-error' will be less obtuse to beginners than
'doom-private-error'.
2022-08-14 20:43:35 +02:00
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
Abdelhak Bougouffa
d8c8f04f2f docs(vertico): add +childframe flag 2022-08-08 18:35:10 +02:00
Henrik Lissner
057e6c531c
refactor: replace doom-enlist with ensure-list
doom-enlist is now a deprecated alias for ensure-list, which is built
into Emacs 28.1+ and is its drop-in replacement. We've already
backported it for 27.x users in doom-lib (in 4bf4978).

Ref: 4bf49785fd
2022-08-07 19:43:13 +02:00
Henrik Lissner
1abcf913aa
revert: fix(docs): set mode in file-local vars
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab.

emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.

Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
Henrik Lissner
1f8bf7accb
merge: rewrite-docs
I've omitted docs/*.org from this merge, as there is still work left to
do there, but I am pushing the module docs early so folks can benefit
from the new docs sooner.
2022-08-03 03:27:50 +02:00
Henrik Lissner
7e400abdc0
fix(docs): set mode in file-local vars
Due to emacs-straight/org-mode@e22b4eb, a replacement major mode (for
org-mode) can no longer be specified from .dir-locals.el, as it spirals
into infinite recursion. Therefore, a mode: line is needed in all Doom
docs.

Ref: emacs-straight/org-mode@e22b4eb7aa
2022-08-03 02:46:33 +02:00
Henrik Lissner
1255315bfc
refactor(docs): replace nav menus with virtual one
Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
2022-08-02 19:37:07 +02:00
Henrik Lissner
e77a45bc22
docs: use lowercase keywords
As per Org's new defaults, which we're adopting elsewhere, so may as
well adopt it here.
2022-08-02 16:23:43 +02:00
Henrik Lissner
61d7200e64
revert: compat
emacs-straight/compat@2a9cf8b7bd -> emacs-straight/compat@cc1924fd8b

Fix: #6583
Amend: dd34802523
2022-07-31 17:44:08 +02:00
Venky Iyer
40ca1a799f
fix(vertico): +vertico/consult-fd
`consult--regexp-compiler` now has 3 arguments

Ref: minad/consult@f0e696dd0d
2022-07-24 00:08:45 +02:00
Itai Y. Efrat
467761e7e5 bump: :completion vertico
minad/consult@b15c81f776 -> minad/consult@6319aec351
minad/marginalia@26f2bd9ee7 -> minad/marginalia@69442c2d94
minad/vertico@e5935b5bbf -> minad/vertico@2ad4619665
oantolin/embark@97270d7257 -> oantolin/embark@5d0459d27a
oantolin/orderless@75eeae2197 -> oantolin/orderless@8b9af2796f
2022-07-23 14:04:34 +02:00
Henrik Lissner
cbc3c0860e
fix(vertico): unrecognized keyword :function error
Due to upstream change to consult-async-split-styles-alist.

Ref: minad/consult@dbe48621f3
2022-06-29 18:14:21 +02:00
Henrik Lissner
9d1df5f298
nit: minor refactors & comment/docstring revisions 2022-06-21 14:40:15 +02:00
Henrik Lissner
4071d27263
fix(vertico): popup rule for embark export buffers
Embark Export buffers have changed their name from "*Embark Export Grep
...*" to "*Embark Export: ...*".

Fix: #6465
2022-06-18 08:19:46 +02:00
Henrik Lissner
24c658bae9
fix(vertico): ensure load order of consult & embark
The precise semantics of use-package's :after keyword is janky (see
jwiegley/use-package#829) and, in the case of 992bd8f7e2, causes
subtle breakage. For one, the remappings in the following :init block
were deferred until embark loaded, so they weren't available at startup,
so they reverted to their old (often vastly inferior) predecessors, like
recentf-open-files instead of consult-recent-files.

Amend: 992bd8f7e2
2022-06-17 20:48:13 +02:00
Ellis Kenyő
4389e2b1c5
feat(vertico): add tramp sources to consult-dir
Fix: #6258
2022-06-17 19:57:32 +02:00
iyefrat
992bd8f7e2
fix(vertico): load consult after embark
Currently, embark-consult bindings don't get loaded if consult hasn't
been loaded yet, leading to missing embark actions until the first
manual consult load.
2022-06-17 18:42:42 +02:00
Daanturo
7c676c83bc tweak(vertico): use setq-default to set completion-in-region-function
Corfu makes completion-in-region-function a local variable in buffers
where it is enabled, so when this form is evaluated in one of those said
buffers (such as opening a file with Emacs before accessing the
minibuffer), completion-in-region-function will just be set locally
there.
2022-06-17 18:40:34 +02:00
Henrik Lissner
77e9932966
bump: :core
Fuco1/smartparens@37f77bf2e2 -> Fuco1/smartparens@ec15aaa748
Wilfred/helpful@67cdd1030b -> Wilfred/helpful@209971ba9f
bbatsov/projectile@f3468e8d20 -> bbatsov/projectile@4d6da873ae
domtronn/all-the-icons.el@65c496d3d1 -> domtronn/all-the-icons.el@ca1ef30004
emacs-straight/project@4fe1eec803 -> emacs-straight/project@c52ec93689
jscheid/dtrt-indent@66fc30af02 -> jscheid/dtrt-indent@57f4072fa8
justbur/emacs-which-key@1217db8c63 -> justbur/emacs-which-key@1ab1d0cc88
raxod502/straight.el@e2de88ea0e -> radian-software/straight.el@0e204d418d

Includes a fix for #5207 (see radian-software/straight.el#955), which
occasionally caused arrayp errors when installing/upgrading packages.

Fix: #5207
Ref: radian-software/straight.el#955
2022-06-17 18:21:23 +02:00
Itai Y. Efrat
ebbebc53a6 tweak(vertico): add basic completion style fallback
This is now the recommended configuration, see the referenced issue.

Ref: oantolin/orderless#111
2022-05-26 23:55:01 +03:00
Itai Y. Efrat
7ed1f96b0b feat(vertico): add crm indicator 2022-05-26 23:55:01 +03:00
Itai Y. Efrat
a8433e0581 bump: :completion vertico
minad/consult@822928a860 -> minad/consult@b15c81f776
minad/vertico@cc5f5421c6 -> minad/vertico@e5935b5bbf
oantolin/embark@d88478b45f -> oantolin/embark@97270d7257
2022-05-26 23:55:01 +03:00
Itai Y. Efrat
4cecc654b9 fix(vertico): consult tofu regex range 2022-05-26 23:55:01 +03:00
Itai Y. Efrat
1f25c3510f feat(vertico): add workarounds for problematic commands 2022-05-26 23:55:01 +03:00
Itai Y. Efrat
08f32e6d0f tweak(vertico): improve org consult source
- only add if :lang org is on
- have a version that works before org is loaded
2022-05-26 01:18:02 +03:00
Itai Y. Efrat
c13b59395c bump: :completion vertico
minad/consult@d30213aa20 -> minad/consult@822928a860
minad/marginalia@dbc37b373e -> minad/marginalia@26f2bd9ee7
minad/vertico@46e8e05650 -> minad/vertico@cc5f5421c6
oantolin/embark@2890e535f5 -> oantolin/embark@d88478b45f
oantolin/orderless@8f64537f55 -> oantolin/orderless@75eeae2197

- Remove everything related to `consult-completing-read-multiple` since
the function has been deprecated upstream due to implementation issues

Ref: minad/consult#567
Close: #6352
2022-05-26 01:18:02 +03:00
Henrik Lissner
65ff263668
fix(vertico): backspace keybind for tty users
The input event, [backspace], is only emitted in GUI Emacs, not TTY
Emacs.

Ref: https://discourse.doomemacs.org/t/2491/3
2022-04-22 23:36:05 +02:00
Sean Farley
ece4a74a9b feat(vertico): add +childframe option similar to ivy 2022-04-15 21:24:34 +02:00
Henrik Lissner
0e48c22c3e
fix(vertico): missing closing paren
And correct minor formatting inconsistencies.

Amend: c39acf284b
2022-04-12 02:51:38 +02:00
Itai Y. Efrat
c39acf284b refactor(vertico): don't suppress compression errors
This was fixed upstream

Ref: minad/marginalia#132
2022-04-12 02:32:20 +02:00
Itai Y. Efrat
c9665f733b fix(vertico): update +vertico-workspace-buffer-state to new api
also adapt upstream improvements
2022-04-12 02:32:20 +02:00
Itai Y. Efrat
136e7df76e bump: :completion vertico consult-lsp
gagbo/consult-lsp@5a3c4e3f42 -> gagbo/consult-lsp@a8eb3a062f
iyefrat/all-the-icons-completion@9e7d456b09 -> iyefrat/all-the-icons-completion@286e2c064a
minad/consult@36b8bc7065 -> minad/consult@d30213aa20
minad/marginalia@a514c024ac -> minad/marginalia@dbc37b373e
minad/vertico@7ec0f0c076 -> minad/vertico@46e8e05650

Close: #6279
Close: #6277
2022-04-12 02:32:20 +02:00
Itai Y. Efrat
fd50f388a4 refactor!(vertico): fix embark-collect and rebind to C-c C-l
BREAKING CHANGE: `embark-collect-snapshot` has been renamed upstream to
`embark-collect`. Since the `C-s` mnemonic doesn't really make sense
anymore, I've moved the binding to `C-c C-l`, which has the nice bonus
of being next to the similar `C-c C-;`, and being nicer.
2022-04-12 02:32:20 +02:00
Henrik Lissner
7121e993ca
bump: :completion
PythonNut/helm-flx@6640fac5cb -> PythonNut/helm-flx@27dd9e3ce3
abo-abo/swiper@c97ea72285 -> abo-abo/swiper@764e0d35ba
company-mode/company-mode@073aef72dd -> company-mode/company-mode@1005540b1c
emacs-helm/helm@5b17313011 -> emacs-helm/helm@1003539c2e
minad/consult-flycheck@0ad7e8ff15 -> minad/consult-flycheck@9b40f136c0
minad/consult@473e6585c5 -> minad/consult@36b8bc7065
minad/marginalia@e63d27e6fb -> minad/marginalia@a514c024ac
minad/vertico@a92b1e47ff -> minad/vertico@7ec0f0c076
oantolin/embark@06d5caafd5 -> oantolin/embark@2890e535f5
oantolin/orderless@f2c78c4a60 -> oantolin/orderless@8f64537f55
2022-04-08 02:52:54 +02:00
Gavin Downard
499cf5e626 tweak(ivy): use helpful for counsel descbinds
`counsel-describe-symbol-function' still doesn't use `helpful-symbol'
because `helpful-symbol' throws up a prompt when the symbol refers to
both a function and a variable.
2022-04-06 20:40:26 +02:00
Egidijus Z
d54462fe6d fix(vertico): vertico-resume to vertico-repeat. 2022-04-01 18:57:41 +02:00
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
Anh T Nguyen
6fcb99b35a docs(company): code completion with multiple keywords 2022-03-19 16:38:27 +01:00