Open promisedlandt opened 2 years ago
I do not use evil, and hard understand what is this problem :-\
Sorry, I have updated with better reproduction steps. But if you don't use evil, maybe we should close the issue?
It's interesting that ivy-posframe works as expected, but vertico-posframe does not.
disable vertico-posframe, and try again, does the second step have expected behavor?
disable vertico-posframe, and try again, does the second step have expected behavor?
Without vertico posframe, the second step has the expected behaviour.
I have try (evil-mode 1) in my machine, I find when I M-x, I need type ESC ESC ESC to exit in second step, I think we need a emacser who know better evil to find the problem, a hack way is let the below code eval after type ESC, maybe advice maybe hook.
(when (posframe-workable-p)
(posframe-hide vertico-posframe--buffer))
I have try (evil-mode 1) in my machine, I find when I M-x, I need type ESC ESC ESC to exit, I think we need a emacser who know better evil to find the problem, a hack way is let the below code eval after type ESC:
(when (posframe-workable-p)
(posframe-hide vertico-posframe--buffer))
In step 5, do you also need ESC ESC ESC? Or just ESC?
ESC ESC ESC, by the way, do you test evil and vertico-posframe in emacs -Q?
ESC ESC ESC, by the way, do you test evil and vertico-posframe in emacs -Q?
do you test evil and vertico-posframe in emacs -Q?
Yes, I have the configuration from the issue in vertico.el, and start with emacs -Q --load ~/.emacs.d/vertico.el
But I noticed I missed the first line when copying, (global-set-key (kbd "<escape>") 'keyboard-escape-quit)
.
Without this line, I also need esc esc esc in step 5, but step 2 is still the same.
Maybe your (global-set-key (kbd "
Maybe your (global-set-key (kbd "
i do not know how to fix this issue, and wait other emacser’s help.
I have the problem in step 2 regardless of the keybinding. But it's fine to not have a solution, I use ivy with ivy-posframe and it's great, thanks! :smile:
I also encountered the same issue, my solution is to use emacs state in minibuffer:
(evil-set-initial-state 'minibuffer-mode 'emacs)
I also encountered the same issue, my solution is to use emacs state in minibuffer:
(evil-set-initial-state 'minibuffer-mode 'emacs)
Thanks, it works for me too.
@tumashu Should I close this issue since there is a workaround now?
@promisedlandt i suggest keep open, maybe other solutions found.
Hello,
Reproduction steps, installed are evil, vertico, vertico-posframe:
m-x
. This opens vertico in the posframe. As expected.esc
. Expected: the posframe closes. Actual: the posframe stays open, and the minibuffer at the bottom of the screen opens (just as if vertico-posframe was not installed).c-g
. This closes posframe and minibuffer at the bottom of the screen.m-x
. This opens vertico in the posframe. As expected.esc
. This closes the posframe, minibuffer at the bottom of the screen does not open (100% as expected)This happens only with evil, without evil it closes on
esc esc esc
.Video:
My minimal config: