tumashu / vertico-posframe

GNU General Public License v3.0
106 stars 16 forks source link

How to only use posframe for particular vertico commands? #13

Closed anonimitoraf closed 2 years ago

anonimitoraf commented 2 years ago

For example, I only want to use vertico-posframe when searching for files, not when searching for words/symbols. Is there any way to do this?

tumashu commented 2 years ago

try vertico-multiform.

anonimitoraf commented 2 years ago

Cool thanks!

anonimitoraf commented 2 years ago

Actually, sorry to re-open

I tried

(setq vertico-multiform-commands
    '((execute-extended-command (lambda (&rest enabled?)
                                  (vertico-posframe--display 0)))))

but while it does seem to work, it has a massive delay and it expands the minibuffer too image

I'm guessing I'm doing something wrong?

tumashu commented 2 years ago

;; Turn on vertico-posframe-mode on for M-x (setq vertico-multiform-command-modes '((execute-extended-command posframe)))

anonimitoraf commented 2 years ago

Ah, perfect!