diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-18 21:43:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-18 21:43:07 +0200 |
commit | 7964873afe59d0896a921b7c585167674bb784d5 (patch) | |
tree | c72d46d9af739d51471bf940a1bc077e526daaf5 /runtime | |
parent | df9c6cad8cc318e26e99c3b055f0788e7d6582de (diff) |
patch 8.1.1714: cannot preview a file in a popup windowv8.1.1714
Problem: Cannot preview a file in a popup window.
Solution: Add the 'previewpopup' option.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 11 | ||||
-rw-r--r-- | runtime/doc/windows.txt | 10 |
2 files changed, 19 insertions, 2 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index ad50bfce3c..7549ed8b10 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -5627,7 +5627,16 @@ A jump table for the options with a short description can be found at |Q_op|. {not available when compiled without the |+windows| or |+quickfix| features} Default height for a preview window. Used for |:ptag| and associated - commands. Used for |CTRL-W_}| when no count is given. + commands. Used for |CTRL-W_}| when no count is given. Not used when + 'previewpopup' is set. + + *'previewpopup'* *'pvp'* +'previewpopup' 'pvp' string (default empty) + global + {not available when compiled without the |+windows|, + |+textprop| or |+quickfix| feature} + When not empty a popup window is used for commands that would open a + preview window. See |preview-popup|. *'previewwindow'* *'nopreviewwindow'* *'pvw'* *'nopvw'* *E590* diff --git a/runtime/doc/windows.txt b/runtime/doc/windows.txt index 2c0cdc3b0e..1c6702fc2a 100644 --- a/runtime/doc/windows.txt +++ b/runtime/doc/windows.txt @@ -864,7 +864,15 @@ height of the preview window when it's opened. The 'previewwindow' option is set in the preview window to be able to recognize it. The 'winfixheight' option is set to have it keep the same height when opening/closing other windows. - + *preview-popup* +Alternatively, a popup window can be used by setting the 'previewpopup' +option. When set, it overrules the 'previewwindow' and 'previewheight' +settings. The option is a comma separated list of values: + height maximum height of the popup + width maximu width of the popup +Example: > + :set previewpopup=height:10,width:60 +< *:pta* *:ptag* :pta[g][!] [tagname] Does ":tag[!] [tagname]" and shows the found tag in a |