comparison runtime/doc/popup.txt @ 16859:0154363d3b98 v8.1.1431

patch 8.1.1431: popup window listed as "Scratch" commit https://github.com/vim/vim/commit/c6896e20f8e7e8d9fe0fd1ad333aae1130d714e1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 30 22:32:34 2019 +0200 patch 8.1.1431: popup window listed as "Scratch" Problem: Popup window listed as "Scratch". Solution: List them as "Popup".
author Bram Moolenaar <Bram@vim.org>
date Thu, 30 May 2019 22:45:04 +0200
parents 19162ff4eacd
children e5dab34ded73
comparison
equal deleted inserted replaced
16858:b1c49e3da5f6 16859:0154363d3b98
83 Probably 2. is the best choice. 83 Probably 2. is the best choice.
84 84
85 85
86 IMPLEMENTATION: 86 IMPLEMENTATION:
87 - Code is in popupwin.c 87 - Code is in popupwin.c
88 - Implement the "pos" option.
89 - Implement filter. 88 - Implement filter.
90 Check that popup_close() works in the filter. 89 Check that popup_close() works in the filter.
90 - Implement padding
91 - Implement border
91 - Handle screen resize in screenalloc(). 92 - Handle screen resize in screenalloc().
92 - show [Popup] instead of [Scratch] in ":ls!"
93 - Make redrawing more efficient and avoid flicker. 93 - Make redrawing more efficient and avoid flicker.
94 Store popup info in a mask, use the mask in screen_line() 94 Store popup info in a mask, use the mask in screen_line()
95 Fix redrawing problem with completion. 95 Fix redrawing problem with completion.
96 Fix redrawing problem when scrolling non-current window 96 Fix redrawing problem when scrolling non-current window
97 Fix redrawing the statusline on top of a popup 97 Fix redrawing the statusline on top of a popup
285 285
286 Options can be set on the window with `setwinvar()`, e.g.: > 286 Options can be set on the window with `setwinvar()`, e.g.: >
287 call setwinvar(winid, '&wrap', 0) 287 call setwinvar(winid, '&wrap', 0)
288 And options can be set on the buffer with `setbufvar()`, e.g.: > 288 And options can be set on the buffer with `setbufvar()`, e.g.: >
289 call setbufvar(winbufnr(winid), '&filetype', 'java') 289 call setbufvar(winbufnr(winid), '&filetype', 'java')
290 Note that this does not trigger autocommands. Use `win_execute()` if you do
291 need them.
290 292
291 293
292 POPUP_CREATE() ARGUMENTS *popup_create-usage* 294 POPUP_CREATE() ARGUMENTS *popup_create-usage*
293 295
294 The first argument of |popup_create()| specifies the text to be displayed, and 296 The first argument of |popup_create()| specifies the text to be displayed, and
318 defines what corner of the popup "line" and "col" are 320 defines what corner of the popup "line" and "col" are
319 used for. When not set "topleft" is used. 321 used for. When not set "topleft" is used.
320 Alternatively "center" can be used to position the 322 Alternatively "center" can be used to position the
321 popup in the center of the Vim window, in which case 323 popup in the center of the Vim window, in which case
322 "line" and "col" are ignored. 324 "line" and "col" are ignored.
323 {not implemented yet}
324 flip when TRUE (the default) and the position is relative 325 flip when TRUE (the default) and the position is relative
325 to the cursor, flip to below or above the cursor to 326 to the cursor, flip to below or above the cursor to
326 avoid overlap with the |popupmenu-completion| or 327 avoid overlap with the |popupmenu-completion| or
327 another popup with a higher "zindex" 328 another popup with a higher "zindex"
328 {not implemented yet} 329 {not implemented yet}
340 {only -1 and 0 are implemented} 341 {only -1 and 0 are implemented}
341 title text to be displayed above the first item in the 342 title text to be displayed above the first item in the
342 popup, on top of any border 343 popup, on top of any border
343 {not implemented yet} 344 {not implemented yet}
344 wrap TRUE to make the lines wrap (default TRUE) 345 wrap TRUE to make the lines wrap (default TRUE)
345 {not implemented yet}
346 highlight highlight group name to use for the text, stored in 346 highlight highlight group name to use for the text, stored in
347 the 'wincolor' option 347 the 'wincolor' option
348 padding list with numbers, defining the padding 348 padding list with numbers, defining the padding
349 above/right/below/left of the popup (similar to CSS); 349 above/right/below/left of the popup (similar to CSS);
350 an empty list uses a padding of 1 all around; the 350 an empty list uses a padding of 1 all around; the