diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-16 22:54:14 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-16 22:54:14 +0200 |
commit | ae943150d3a2868a89df802c9f530331474451ec (patch) | |
tree | 26ba407cb4f856dace31834fbf9fdcef0dd95f0b /runtime | |
parent | 6313c4f41d0e1d91b4217557685c014ea919915f (diff) | |
download | vim-git-ae943150d3a2868a89df802c9f530331474451ec.tar.gz |
patch 8.1.1561: popup_setoptions() is not implemented yetv8.1.1561
Problem: Popup_setoptions() is not implemented yet.
Solution: Implement popup_setoptions(). Also add more fields to
popup_getoptions().
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/popup.txt | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/runtime/doc/popup.txt b/runtime/doc/popup.txt index 398c6cc29..51b284904 100644 --- a/runtime/doc/popup.txt +++ b/runtime/doc/popup.txt @@ -109,8 +109,6 @@ TODO: - When the lines do not fit show a scrollbar (like in the popup menu). Use the mouse wheel for scrolling. - Implement: - popup_setoptions({id}, {options}) - hidden option tabpage option with number flip option transparent text property @@ -247,11 +245,15 @@ popup_getoptions({id}) *popup_getoptions()* A zero value means the option was not set. For "zindex" the default value is returned, not zero. - The "highlight" entry is omitted, use the 'wincolor' option - for that: > - let hl = getwinvar(winid, '&wincolor') + The "moved" entry is a list with minimum and maximum column, + [0, 0] when not set. -< If popup window {id} is not found an empty Dict is returned. + "border" and "padding" are not included when all values are + zero. When all values are one then an empty list is included. + + "borderhighlight" is not included when all values are empty. + + If popup window {id} is not found an empty Dict is returned. popup_getpos({id}) *popup_getpos()* @@ -307,9 +309,17 @@ popup_menu({text}, {options}) *popup_menu()* popup_move({id}, {options}) *popup_move()* Move popup {id} to the position specified with {options}. {options} may contain the items from |popup_create()| that - specify the popup position: "line", "col", "pos", "maxheight", - "minheight", "maxwidth" and "minwidth". + specify the popup position: + line + col + pos + maxheight + minheight + maxwidth + minwidth + fixed For {id} see `popup_hide()`. + For other options see |popup_setoptions()|. popup_notification({text}, {options}) *popup_notification()* @@ -341,8 +351,26 @@ popup_show({id}) *popup_show()* popup_setoptions({id}, {options}) *popup_setoptions()* - {not implemented yet} Override options in popup {id} with entries in {options}. + These options can be set: + flip + firstline + title + wrap + drag + highlight + padding + border + borderhighlight + borderchars + zindex + time + moved + filter + callback + The options from |popup_move()| can also be used. + For "hidden" use |popup_hide()| and |popup_show()|. + "tabpage" cannot be changed. popup_settext({id}, {text}) *popup_settext()* Set the text of the buffer in poup win {id}. {text} is the |