Feat: Add more settings to 'completepopup'#18487
Feat: Add more settings to 'completepopup'#18487girishji wants to merge 7 commits intovim:masterfrom
Conversation
This patch extends the 'completepopup' option with additional settings to
allow more configuration of info popup window.
New values:
```
- close "on" (default) or "off"
- resize "on" (default) or "off"
- borderchars specify eight characters (separated by semicolons) to draw
the popup border: top, right, bottom, left, topleft,
topright, botright, botleft.
- borderhighlight highlight group for the popup border characters
- shadow pum shadow
```
|
is it feasible to extend
plus the next implying here |
|
You want to replace Or, make |
|
I don't think this would work and I think it would break scripts that query the |
|
Indeed, borderstyle sounds better. |
I was about |
M runtime/doc/insert.txt M src/optionstr.c M src/popupwin.c
|
Try now. |
M runtime/doc/insert.txt M runtime/doc/options.txt
|
Looks good, although I would have added To reflect that it still works as before this change. |
Wouldn’t it be better to deprecate the 'on' value to avoid redundancy? |
Probably. But it still needs to be mentioned as valid value (with deprecation note?), @chrisbra what do you think? |
|
Would that cause any backward incompatibilities? |
It works the same if you Marking it as deprecated sets expectation that in some future it might be removed (9.3? 9.4?), it would be up to core team to decide when to do it if ever. |
M runtime/doc/options.txt M src/optiondefs.h M src/optionstr.c M src/popupwin.c M src/proto/optionstr.pro M src/testdir/test_options.vim
That was my earlier approach to maintain backward compatibility. Now, however, I’ve made "on" a first-class value. It automatically switches between "double" and "ascii" when box characters aren’t available—matching the previous default behavior. |
M src/popupwin.c
M src/popupwin.c
|
alright, thanks |
|
Thanks |
Pl. merge this after #18486.
This patch extends the 'completepopup' option with additional settings. Also, adds "shadow" effect to the info popup window.
New values:
Edit:
New values: