All Questions
Tagged with popup-menu vimscript
6 questions
40
votes
1
answer
14k
views
What are the new "popup windows" in Vim 8.2?
The latest version of Vim, 8.2, has a new feature called "popups" or "popup windows". They sound interesting but I'm not quite sure what they're good for. Can you enlighten me...preferably with some ...
4
votes
2
answers
360
views
How to open folds in a pedit-preview popup window?
I'm displaying a file contents by using :pedit …the-file-path…, to then call popup_setoptions(…the-ID…,#{firstline:anumber}) in order to scroll the popup and highlight/show the desired part of the ...
2
votes
1
answer
310
views
Scrolling down in popup window not working as intended
I have the following code:
let text = range(50)->map({_,i -> string(i)})
let winid = popup_create(text, {
\ 'line': 1,
\ 'col': 1,
\ 'minwidth': 1,
\ 'minheight': 1,
\ '...
1
vote
2
answers
253
views
Sync cursors of popup window and current window
I'm trying to sync the cursors movement of a popup window, and the current window.
call range(50)
\ ->map({_, i -> string(i)})
\ ->popup_create(#{
\ line: 1,
\ col: 1,
...
1
vote
1
answer
1k
views
How to set cursor position in a popup buffer?
I'm tinkering with popups and trying to open one, select a line (namely set the cursor line by pressing mapped keys (Ctrln / Ctrlp)), then close it. The problem is that I cannot select a line, despite ...
0
votes
1
answer
23
views
Usual navigation motions in a popup window?
I'd like to write a file-tree/file-browsing plugin that uses popup windows.
In popup_create I can set a filter to capture keys. For instance,
popup_create('hello world', {filter: 'popup_filter_menu'})
...