Open daviwil opened 3 years ago
(run-at-time 0 nil #'vertico--exhibit)
at the end of vertico--setup
may be needed.Note that mini-popup will not work well with EXWM in general since the X11 windows will be shown on top of the child frame windows. I think mini-popup is more a replacement for ivy-posframe and for this purpose it works well. For all the more complicated scenarios, mini-frame is the better bet. mini-frame can also show the Completions buffer in a child frame, so it does a lot more.
Btw, @daviwil does it make sense to use a dedicated minibuffer frame in EXWM? If you add the following to the configuration, every frame is started without a minibuffer. And then the minibuffer pops up in a dedicated frame.
(mapc (lambda (p)
(add-to-list 'initial-frame-alist p)
(add-to-list 'default-frame-alist p))
'((minibuffer . nil)
(menu-bar-lines . 0)
(tool-bar-lines . 0)
(vertical-scroll-bars . nil)
(horizontal-scroll-bars . nil)))
Is this too inconvenient? Since under the hood this is essentially what you get with mini-frame too on EXWM. I would like to understand a bit better what the best configuration for Vertico is for each scenario (such infos would be a good fit for the wiki).
vertico-next
and vertico-previous
not working is definitely an evil-mode issue, I have the same problem. As a quick hack I just use the following:
(advice-add #'mini-popup--setup :after #'turn-off-evil-mode)
Just FYI -- I had the same issues with vertico-next
and vertico-previous
not working properly with evil but declaring the states explicitly in which the commands are bound seems to work and resolve the issue. I have the following in my use-package
declaration (note that this uses general.el
):
:general
(:states '(normal insert emacs) :keymaps 'vertico-map
"C-j" #'vertico-next
"C-k" #'vertico-previous)
Hey @minad! Here's a quick video capture of me trying mini-popup in EXWM. There are three things I noticed:
C-j
andC-k
as vertico-next/vertico-previous bindings in minibuffers but for some reasonC-k
doesn't work in the popup window (I've noticed this with Corfu too, just hadn't reported it yet)describe-variable
, no completion results will be displayed with an empty input. Wasn't able to capture that one on this recording, though.Thanks for giving this a shot!
https://user-images.githubusercontent.com/79405/119261195-2de89e80-bb8b-11eb-8fbd-3ed074b96b9a.mp4