Mercurial > vim
comparison runtime/doc/popup.txt @ 16829:5cebaecad422 v8.1.1416
patch 8.1.1416: popup_getposition() not implemented yet
commit https://github.com/vim/vim/commit/bc133543b8b0ebb1d8624e37d840b739eb00f3f3
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 29 20:26:46 2019 +0200
patch 8.1.1416: popup_getposition() not implemented yet
Problem: Popup_getposition() not implemented yet.
Solution: Implement it. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/4449)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 29 May 2019 20:30:05 +0200 |
parents | 069ee8dc8c8d |
children | 6699c03347d2 |
comparison
equal
deleted
inserted
replaced
16828:1a8e924e66ba | 16829:5cebaecad422 |
---|---|
82 Probably 2. is the best choice. | 82 Probably 2. is the best choice. |
83 | 83 |
84 | 84 |
85 IMPLEMENTATION: | 85 IMPLEMENTATION: |
86 - Code is in popupwin.c | 86 - Code is in popupwin.c |
87 - implement popup_getposition({id}), use in tests | 87 - when creating the window set options to Vim default? (verify with 'number') |
88 - Do not show tilde below last line. | |
88 - Implement filter. | 89 - Implement filter. |
90 Check that popup_close() works in the filter. | |
89 - Handle screen resize in screenalloc(). | 91 - Handle screen resize in screenalloc(). |
90 - Make redrawing more efficient and avoid flicker. | 92 - Make redrawing more efficient and avoid flicker. |
93 Fix redrawing problem with completion. | |
94 Fix redrawing problem when scrolling non-current window | |
95 Fix redrawing the statusline on top of a popup | |
91 - Properly figure out the size and position. | 96 - Properly figure out the size and position. |
97 - Can the buffer be re-used, to avoid using up lots of buffer numbers? | |
92 - Implement all the unimplemented options and features. | 98 - Implement all the unimplemented options and features. |
93 | 99 |
94 | 100 |
95 ============================================================================== | 101 ============================================================================== |
96 2. Functions *popup-functions* | 102 2. Functions *popup-functions* |
223 popup_getoptions({id}) *popup_getoptions()* | 229 popup_getoptions({id}) *popup_getoptions()* |
224 {not implemented yet} | 230 {not implemented yet} |
225 Return the {options} for popup {id}. | 231 Return the {options} for popup {id}. |
226 | 232 |
227 popup_getposition({id}) *popup_getposition()* | 233 popup_getposition({id}) *popup_getposition()* |
228 {not implemented yet} | |
229 Return the position and size of popup {id}. Returns a Dict | 234 Return the position and size of popup {id}. Returns a Dict |
230 with these entries: | 235 with these entries: |
231 col screen column of the popup, one-based | 236 col screen column of the popup, one-based |
232 line screen line of the popup, one-based | 237 line screen line of the popup, one-based |
233 width width of the popup in screen cells | 238 width width of the popup in screen cells |
234 height height of the popup in screen cells | 239 height height of the popup in screen cells |
240 Note that these are the actual screen positions. They differ | |
241 from the values in `popup_getoptions()` for the sizing and | |
242 positioning mechanism applied. | |
243 If popup window {id} is not found an empty Dict is returned. | |
235 | 244 |
236 win_execute({id}, {command}) | 245 win_execute({id}, {command}) |
237 {not implemented yet} | 246 {not implemented yet} |
238 Like `execute()` but in the context of window {id}. | 247 Like `execute()` but in the context of window {id}. |
239 The window will temporarily be made the current window, | 248 The window will temporarily be made the current window, |