Closed minad closed 2 years ago
Btw, I also linked to your package from https://github.com/minad/vertico#child-frames-and-popups. I am still not recommending it unreservedly due to the flicker issues. ;)
please try last code, maybe fixed :-)
The prompt flicker is indeed gone, but now the cursor flickers badly. Please compare with https://github.com/minad/mini-popup, which does not have the issue.
One more thing I'd like to point out - you can be a bit more economical with your usage of advices, which will ultimately make your code more robust and less likely to break if I change something in Vertico:
Instead of advising completing-read-default
and completing-read-multiple
and obtaining the window you can use minibuffer-selected-window
. So these two advices are unnecessary. Then you install another post-command-hook. This hook should not be necessary since you replace the display function. The display function is executed at the end of the vertico--exhibit
post-command-hook. You can move the code of your vertico-posframe--post-command-function
to your vertico-posframe--display
function.
minibuffer-selected-window
good idea.
You can move the code of your vertico-posframe--post-command-function to your vertico-posframe--display function
done.
but now the cursor flickers badly.
I think this should improve :-)
Works pretty well now and also looks good code wise. Thanks!
Hey @tumashu,
I just tried vertico-posframe and it seems to work well, much better than last time I tried posframe! However I found that the prompt flickers if you scroll quickly through the candidate list of e.g. M-x. Then the prompt string "M-x" flickers noticeably. No other parts of the UI flicker, besides some initial flicker at startup. Any idea what could be causing this prompt flicker and if it is fixable? Thanks!