-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Vertico improvements: theming, bugfixes, new bindings, adaptations to upstream changes #5299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
29354c5 to
f827beb
Compare
<leader> s B
<leader> s B<leader> s B
f827beb to
c448928
Compare
|
I'm converting this back to draft because there are some cool upstream embark changes that would be a shame to wait until the next bump to get, but require a bit of manual work on my part to fix the which key intergration. Should be ready soonish. |
c448928 to
554e530
Compare
<leader> s B<leader> s B, new embark indicator
554e530 to
c15e1cd
Compare
| (which-key--show-keymap "Embark" map nil nil 'no-paging) | ||
| #'which-key--hide-popup-ignore-command) | ||
| embark-become-indicator embark-action-indicator) | ||
| (setq embark-indicator #'+vertico/embark-which-key-indicator) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that there is an interesting alternative to the which-key indicator, the recently introduced verbose indicator (it's what's used by default). it looks like this:

this is more useful than which-key information-wise, but breaks with doom using which key everywhere else, and this information can also be reached by pressing C-h to start a vertico filtering session.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Hey, you should send that screenshot to Omar, who needs a nice screenshot!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh I think that screenshots on the embark readme should probably have things like a nonarbitrary aspect ratio and not cutting off lines of text at the bottom. Also they should probably be taken from a reasonably default config, e.g. not having the doom modeline, or icons.
Although this reminds me, I should probably add a screenshot to all-the-icons-completion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's different about the new which-key one, other than that submenus work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing that I can notice to be honest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main point of having a new which-key indicator is that the indicator protocol changed so the old one won't work anymore! But also, the new one displays (in the which-key help message) whether you are using embark-act or embark-become, and also shows the current target and an ellipsis when there are further targets you can cycle to.
2f848b2 to
9d2131b
Compare
<leader> s B, new embark indicator|
Is it possible to ad the icons to Thanks! |
|
@numkem yeah I'll add this to Edit: fixed |
cf780b0 to
624bd9d
Compare
007266b to
ec78473
Compare
ec78473 to
d4396ac
Compare
c4d9609 to
76bc719
Compare
ec833fe to
ef277b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just one correction and I think this is ready to merge.
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
- needs to be `cmd!!` for the prefix argument - use descriptive quoted symbol instead of `'(4)` for prefix arg
- use `doom-project-root` in the annotation category `project-file` (marginalia uses `project.el`) - annotate more functions, alphabetize list
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.
- require `consult` (`consult--directory-prompt` isn't autoloaded) - set category to `'file`
ef277b3 to
aac2c2d
Compare
- replace obsolete `embark-default-action` with `embark-dwim` - add `defvar` for `embark-quiet-after-action` to fix lexical var bug
aac2c2d to
3af07d2
Compare
gagbo/consult-lsp@c882749 -> gagbo/consult-lsp@e8a50f2 compatibility fix with new versions of consult
|
Looks good to me. Great work! And thanks again! |
This PR contains:
:completion verticoand:ui doomconsult-crm<leader> c jsince it usedcmd!instead ofcmd!!consult-line-multito<leader s B>(the prefix argument makes it search all buffers, without it it just searches buffers of the current project)project-filecategory to use projectileconsult-recent-file+vertico/find-file-incc: @tecosaur @elken @minad