-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Feat: Add more settings to 'completepopup' #18487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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: