Mercurial > vim
comparison runtime/doc/popup.txt @ 17077:2546930657a9 v8.1.1538
patch 8.1.1538: cannot specify highlighting for notifications
commit https://github.com/vim/vim/commit/dfa97f2aed3d8ca195d09e2ce91cef227f933961
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 15 14:31:55 2019 +0200
patch 8.1.1538: cannot specify highlighting for notifications
Problem: Cannot specify highlighting for notifications.
Solution: Use the PopupNotification group if it exists. Add a minimal width
to notifications.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Jun 2019 14:45:05 +0200 |
parents | dacd46fbaa90 |
children | 94007c802045 |
comparison
equal
deleted
inserted
replaced
17076:edd03436c86d | 17077:2546930657a9 |
---|---|
1 *popup.txt* For Vim version 8.1. Last change: 2019 Jun 12 | 1 *popup.txt* For Vim version 8.1. Last change: 2019 Jun 15 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
91 - Disable commands, feedkeys(), CTRL-W, etc. in a popup window. | 91 - Disable commands, feedkeys(), CTRL-W, etc. in a popup window. |
92 Use NOT_IN_POPUP_WINDOW for more commands. | 92 Use NOT_IN_POPUP_WINDOW for more commands. |
93 - Add 'balloonpopup': instead of showing text, let the callback open a popup | 93 - Add 'balloonpopup': instead of showing text, let the callback open a popup |
94 window and return the window ID. The popup will then be closed when the | 94 window and return the window ID. The popup will then be closed when the |
95 mouse moves, except when it moves inside the popup. | 95 mouse moves, except when it moves inside the popup. |
96 - For notifications use the PopupNotification highlight group, fall back to | |
97 WarningMsg if it isn't defined. | |
98 - For the "moved" property also include mouse movement? | 96 - For the "moved" property also include mouse movement? |
99 - Make redrawing more efficient and avoid flicker: | 97 - Make redrawing more efficient and avoid flicker: |
100 - put popup menu also put in popup_mask? | 98 - put popup menu also put in popup_mask? |
101 - Invoke filter with character before mapping? | 99 - Invoke filter with character before mapping? |
102 - Figure out the size and position better. | 100 - Figure out the size and position better. |
298 Show the {text} for 3 seconds at the top of the Vim window. | 296 Show the {text} for 3 seconds at the top of the Vim window. |
299 This works like: > | 297 This works like: > |
300 call popup_create({text}, { | 298 call popup_create({text}, { |
301 \ 'line': 1, | 299 \ 'line': 1, |
302 \ 'col': 10, | 300 \ 'col': 10, |
301 \ 'minwidth': 20, | |
303 \ 'time': 3000, | 302 \ 'time': 3000, |
304 \ 'tabpage': -1, | 303 \ 'tabpage': -1, |
305 \ 'zindex': 200, | 304 \ 'zindex': 200, |
306 \ 'drag': 1, | 305 \ 'drag': 1, |
307 \ 'highlight': 'WarningMsg', | 306 \ 'highlight': 'WarningMsg', |
308 \ 'border': [], | 307 \ 'border': [], |
309 \ 'padding': [0,1,0,1], | 308 \ 'padding': [0,1,0,1], |
310 \ }) | 309 \ }) |
310 < The PopupNotification highlight group is used instead of | |
311 WarningMsg if it is defined. | |
311 < The position will be adjusted to avoid overlap with other | 312 < The position will be adjusted to avoid overlap with other |
312 notifications. | 313 notifications. |
313 Use {options} to change the properties. | 314 Use {options} to change the properties. |
314 | 315 |
315 | 316 |