tumashu / vertico-posframe

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

Disable per command #5

Closed AloisJanicek closed 2 years ago

AloisJanicek commented 2 years ago

It would be great to have a nice way to disable vertico-posframe on the per command basis, something like ivy-posframe-display-functions-alist of ivy-posframe.

For example I personally think that displaying vertico buffer of consult-line / consult-grep completion in posframe popup is distracting and I would like to have an easy way to tell vertico-posframe to ignore those particular commands.

tumashu commented 2 years ago

I think it does not have a simple way to do this job

minad commented 2 years ago

I just added vertico-multiform. It should be possible to use this for vertico-posframe. There is no need to add something here if you can use the generic configuration framework offered by vertico-multiform. Try this:

;; Turn on vertico-posframe-mode on for M-x
(setq vertico-multiform-command-modes
      '((execute-extended-command posframe)))
tumashu commented 2 years ago

cool!