comparison runtime/doc/popup.txt @ 16809:5ff14f96f1c9 v8.1.1406

patch 8.1.1406: popup_hide() and popup_show() not implemented yet commit https://github.com/vim/vim/commit/2cd0dce898995a2b05f7285a70efec3f67f579f5 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 26 22:17:52 2019 +0200 patch 8.1.1406: popup_hide() and popup_show() not implemented yet Problem: popup_hide() and popup_show() not implemented yet. Solution: Implement the functions.
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 May 2019 22:30:05 +0200
parents c002c4899529
children 0457d49eb2d9
comparison
equal deleted inserted replaced
16808:c002c4899529 16809:5ff14f96f1c9
83 83
84 84
85 IMPLEMENTATION: 85 IMPLEMENTATION:
86 - Code is in popupwin.c 86 - Code is in popupwin.c
87 - Implement list of lines with text properties 87 - Implement list of lines with text properties
88 - Implement popup_hide() and popup_show()
89 - Implement filter. 88 - Implement filter.
90 - Handle screen resize in screenalloc(). 89 - Handle screen resize in screenalloc().
91 - Make redrawing more efficient and avoid flicker. 90 - Make redrawing more efficient and avoid flicker.
92 - Properly figure out the size and position. 91 - Properly figure out the size and position.
93 - Implement all the unimplemented options and features. 92 - Implement all the unimplemented options and features.
177 \ }) 176 \ })
178 < Use {options} to change the properties. Should at least set 177 < Use {options} to change the properties. Should at least set
179 "callback" to a function that handles the selected item. 178 "callback" to a function that handles the selected item.
180 179
181 180
182 popup_show({id}) *popup_show()*
183 {not implemented yet}
184 If {id} is a hidden popup, show it now.
185
186 popup_hide({id}) *popup_hide()* 181 popup_hide({id}) *popup_hide()*
187 {not implemented yet}
188 If {id} is a displayed popup, hide it now. If the popup has a 182 If {id} is a displayed popup, hide it now. If the popup has a
189 filter it will not be invoked for so long as the popup is 183 filter it will not be invoked for so long as the popup is
190 hidden. 184 hidden.
185 If window {id} does not exist nothing happens. If window {id}
186 exists but is not a popup window an error is given. *E993*
187
188 popup_show({id}) *popup_show()*
189 If {id} is a hidden popup, show it now.
190 For {id} see `popup_hide()`.
191 191
192 popup_move({id}, {options}) *popup_move()* 192 popup_move({id}, {options}) *popup_move()*
193 {not implemented yet} 193 {not implemented yet}
194 Move popup {id} to the position speficied with {options}. 194 Move popup {id} to the position speficied with {options}.
195 {options} may contain the items from |popup_create()| that 195 {options} may contain the items from |popup_create()| that
196 specify the popup position: "line", "col", "pos", "maxheight", 196 specify the popup position: "line", "col", "pos", "maxheight",
197 "minheight", "maxwidth" and "minwidth". 197 "minheight", "maxwidth" and "minwidth".
198 For {id} see `popup_hide()`.
198 199
199 200
200 popup_filter_menu({id}, {key}) *popup_filter_menu()* 201 popup_filter_menu({id}, {key}) *popup_filter_menu()*
201 {not implemented yet} 202 {not implemented yet}
202 Filter that can be used for a popup. It handles the cursor 203 Filter that can be used for a popup. It handles the cursor