comparison runtime/doc/windows.txt @ 17632:5278e5a2a4e3 v8.1.1813

patch 8.1.1813: ATTENTION prompt for a preview popup window commit https://github.com/vim/vim/commit/2debf1c16b93f8693a785f675320d9e949c96a97 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 4 20:44:19 2019 +0200 patch 8.1.1813: ATTENTION prompt for a preview popup window Problem: ATTENTION prompt for a preview popup window. Solution: Close the popup window if aborting the buffer load. Avoid getting the ATTENTION dialog.
author Bram Moolenaar <Bram@vim.org>
date Sun, 04 Aug 2019 20:45:05 +0200
parents 2704c4e3e20a
children cc953757ed2a
comparison
equal deleted inserted replaced
17631:1f3f6e1d69cf 17632:5278e5a2a4e3
1 *windows.txt* For Vim version 8.1. Last change: 2019 Jul 27 1 *windows.txt* For Vim version 8.1. Last change: 2019 Aug 04
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
872 settings. The option is a comma separated list of values: 872 settings. The option is a comma separated list of values:
873 height maximum height of the popup 873 height maximum height of the popup
874 width maximum width of the popup 874 width maximum width of the popup
875 Example: > 875 Example: >
876 :set previewpopup=height:10,width:60 876 :set previewpopup=height:10,width:60
877 < 877
878 A few peculiarities:
879 - If the file is in a buffer already, it will be re-used. This will allow for
880 editing the file while it's visible in the popup window.
881 - No ATTENTION dialog will be used, since you can't edit the file in the popup
882 window. However, if you later open the same buffer in a normal window, you
883 may not notice it's edited elsewhere. And when then using ":edit" to
884 trigger the ATTENTION and responding "A" for Abort, the preview window will
885 become empty.
886
878 *:pta* *:ptag* 887 *:pta* *:ptag*
879 :pta[g][!] [tagname] 888 :pta[g][!] [tagname]
880 Does ":tag[!] [tagname]" and shows the found tag in a 889 Does ":tag[!] [tagname]" and shows the found tag in a
881 "Preview" window without changing the current buffer or cursor 890 "Preview" window without changing the current buffer or cursor
882 position. If a "Preview" window already exists, it is re-used 891 position. If a "Preview" window already exists, it is re-used