Mercurial > vim
comparison runtime/doc/popup.txt @ 19813:350e1d3131d8
Update runtime files
Commit: https://github.com/vim/vim/commit/191acfdecabfbd2a74867e77004196fb3b4a8c14
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 27 20:42:43 2020 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 27 Mar 2020 21:00:05 +0100 |
parents | bceeded72898 |
children | bd021eb62e73 |
comparison
equal
deleted
inserted
replaced
19812:7cde7ea94dd3 | 19813:350e1d3131d8 |
---|---|
1 *popup.txt* For Vim version 8.2. Last change: 2020 Mar 14 | 1 *popup.txt* For Vim version 8.2. Last change: 2020 Mar 21 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
149 window. | 149 window. |
150 - When the job ends, the popup window closes. | 150 - When the job ends, the popup window closes. |
151 - The popup window can be closed with `popup_close()`, the terminal buffer | 151 - The popup window can be closed with `popup_close()`, the terminal buffer |
152 then becomes hidden. | 152 then becomes hidden. |
153 - The default Pmenu color is only used for the border and padding. To change | 153 - The default Pmenu color is only used for the border and padding. To change |
154 the color of the terminal itself set 'wincolor'. | 154 the color of the terminal itself set the Terminal highlight group before |
155 creating the terminal. Setting 'wincolor' later can work but requires the | |
156 program in the terminal to redraw everything. | |
155 - The default minimal size is 5 lines of 20 characters; Use the "minwidth" and | 157 - The default minimal size is 5 lines of 20 characters; Use the "minwidth" and |
156 "minheight" parameters to set a different value. | 158 "minheight" parameters to set a different value. |
159 - The terminal size will grow if the program running in the terminal writes | |
160 text. Set "maxheight" and "maxwidth" to restrict the size. | |
157 | 161 |
158 To run a terminal in a popup window, first create the terminal hidden. Then | 162 To run a terminal in a popup window, first create the terminal hidden. Then |
159 pass the buffer number to popup_create(). Example: > | 163 pass the buffer number to popup_create(). Example: > |
164 hi link Terminal Search | |
160 let buf = term_start(['picker', 'Something'], #{hidden: 1, term_finish: 'close'}) | 165 let buf = term_start(['picker', 'Something'], #{hidden: 1, term_finish: 'close'}) |
161 let winid = popup_create(buf, #{minwidth: 50, minheight: 20}) | 166 let winid = popup_create(buf, #{minwidth: 50, minheight: 20}) |
162 set wincolor=Search | |
163 | 167 |
164 ============================================================================== | 168 ============================================================================== |
165 2. Functions *popup-functions* | 169 2. Functions *popup-functions* |
166 | 170 |
167 Creating a popup window: | 171 Creating a popup window: |