-
-
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
Changes from all commits
d6fba19
099a4ac
4c3c027
9e31d0d
b790123
859fc4e
a23cb1f
19c4090
f7863f9
3af07d2
41772a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,7 +73,7 @@ overrides `completion-styles' during company completion sessions.") | |
| [remap locate] #'consult-locate | ||
| [remap load-theme] #'consult-theme | ||
| [remap man] #'consult-man | ||
| [remap recentf-open-files] (cmd! (recentf-mode +1) (consult-recent-file)) | ||
| [remap recentf-open-files] #'consult-recent-file | ||
| [remap switch-to-buffer] #'consult-buffer | ||
| [remap switch-to-buffer-other-window] #'consult-buffer-other-window | ||
| [remap switch-to-buffer-other-frame] #'consult-buffer-other-frame | ||
|
|
@@ -118,7 +118,10 @@ overrides `completion-styles' during company completion sessions.") | |
| :category buffer | ||
| :state ,#'consult--buffer-state | ||
| :items ,(lambda () (mapcar #'buffer-name (org-buffer-list))))) | ||
| (add-to-list 'consult-buffer-sources '+vertico--consult-org-source 'append))) | ||
| (add-to-list 'consult-buffer-sources '+vertico--consult-org-source 'append)) | ||
| (map! :map consult-crm-map | ||
| :desc "Select candidate" "TAB" #'+vertico/crm-select | ||
| :desc "Enter candidates" "RET" #'+vertico/crm-exit)) | ||
|
|
||
|
|
||
| (use-package! consult-flycheck | ||
|
|
@@ -140,11 +143,7 @@ overrides `completion-styles' during company completion sessions.") | |
| :config | ||
| (set-popup-rule! "^\\*Embark Export Grep" :size 0.35 :ttl 0 :quit nil) | ||
|
|
||
| (setq embark-action-indicator | ||
| (lambda (map _target) | ||
| (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) | ||
| ;; add the package! target finder before the file target finder, | ||
| ;; so we don't get a false positive match. | ||
| (let ((pos (or (cl-position | ||
|
|
@@ -174,11 +173,19 @@ overrides `completion-styles' during company completion sessions.") | |
| :config | ||
| (when (featurep! +icons) | ||
| (add-hook 'marginalia-mode-hook #'all-the-icons-completion-marginalia-setup)) | ||
| (advice-add #'marginalia--project-root :override #'doom-project-root) | ||
| (pushnew! marginalia-command-categories | ||
| '(+default/find-file-under-here. file) | ||
| '(doom/find-file-in-emacsd . project-file) | ||
| '(doom/find-file-in-other-project . project-file) | ||
| '(doom/find-file-in-private-config . file) | ||
| '(doom/describe-active-minor-mode . minor-mode) | ||
| '(flycheck-error-list-set-filter . builtin) | ||
| '(persp-switch-to-buffer . buffer) | ||
| '(projectile-find-file . project-file) | ||
| '(doom/describe-active-minor-mode . minor-mode) | ||
| '(flycheck-error-list-set-filter . builtin))) | ||
| '(projectile-recentf . project-file) | ||
| '(projectile-switch-to-buffer . buffer) | ||
| '(projectile-switch-project . project-file))) | ||
|
Comment on lines
+179
to
+188
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some of the annotations in the |
||
|
|
||
|
|
||
| (use-package! embark-consult | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| ;; -*- no-byte-compile: t; -*- | ||
| ;;; ui/doom/packages.el | ||
|
|
||
| (package! doom-themes :pin "5221b0600d9da16e0e3af332ff1fe2ef624f0af4") | ||
| (package! doom-themes :pin "9e2680b9188ebd58c490598684bb7545ba01950d") | ||
| (package! solaire-mode :pin "030964f7c62696c8cfb29125df6e7649d2bf9aeb") |
Uh oh!
There was an error while loading. Please reload this page.
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-keyinformation-wise, but breaks with doom using which key everywhere else, and this information can also be reached by pressingC-hto 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-completionThere 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
Uh oh!
There was an error while loading. Please reload this page.
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-actorembark-become, and also shows the current target and an ellipsis when there are further targets you can cycle to.