tumashu / vertico-posframe

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

How to change position to top center? #9

Closed aminevsaziz closed 2 years ago

aminevsaziz commented 2 years ago

Is in possible to change the position of the posframe to the top center? I don't see any function that help on achieving that

tumashu commented 2 years ago

can, use this

(defcustom vertico-posframe-poshandler #'posframe-poshandler-frame-center "The posframe poshandler used by vertico-posframe." :type 'function)

在 2022-01-09 21:39:35,"Merghadi Abdelaziz" @.***> 写道:

Is in possible to change the position of the posframe to the top center? I don't see any function that help on achieving that

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.Message ID: @.***>

aminevsaziz commented 2 years ago

Then what? I mean its custom function but how to set the values for top center?

tumashu commented 2 years ago

set to posframe-poshandler-frame-top-center or posframe-poshandler-window-top-center

aminevsaziz commented 2 years ago

set to posframe-poshandler-frame-top-center or posframe-poshandler-window-top-center

Unfortunately it didn't work at all. Those function do exist in ivy-posframe but not in the vertico.el. can you please add them so we can be able to change position.

tumashu commented 2 years ago

No, thay are in posframe package

tumashu commented 2 years ago

图片

aminevsaziz commented 2 years ago

Screenshot_20220110-074036_Chrome Screenshot_20220110-074016_Chrome

Take a look.

aminevsaziz commented 2 years ago

图片

What did you wrote there in the scratch? (setq posframe-poshandler-frame-top-center t) and (setq posframe-poshandler-window-top-center t) , am I write?

tumashu commented 2 years ago

posframe, not vertico-posframe

aminevsaziz commented 2 years ago

posframe, not vertico-posframe

So I need to use posframe instead of vertico-posframe

tumashu commented 2 years ago

I mean the two functions is in posframe package, vertico-posframe depend posframe, so you have installed posframe, just use them.

tumashu commented 2 years ago

(setq vertico-posframe-poshandler #'posframe-poshandler-frame-top-center)

aminevsaziz commented 2 years ago

(setq vertico-posframe-poshandler #'posframe-poshandler-frame-top-center)

Thank you🎊. Everything work as it should be.

BTW, what does the # do. I mean the # before 'posframe-...etc

tumashu commented 2 years ago

'xxx is shorthand of (function xxx)

在 2022-01-10 15:53:58,"Merghadi Abdelaziz" @.***> 写道:

(setq vertico-posframe-poshandler #'posframe-poshandler-frame-top-center)

Thank you🎊. Everything work as it should be.

BTW, what does the # do. I mean the # before 'posframe-...etc

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>