import { getwininfo } from "https://deno.land/x/denops_std@v5.0.2/function/mod.ts";
Returns information about windows as a List
with Dictionaries.
If {winid} is given Information about the window with that ID
is returned, as a List
with one item. If the window does not
exist the result is an empty list.
Without {winid} information about all the windows in all the tab pages is returned.
Each List item is a Dictionary
with the following entries:
botline last complete displayed buffer line
bufnr number of buffer in the window
height window height (excluding winbar)
loclist 1 if showing a location list
only with the +quickfix feature
quickfix 1 if quickfix or location list window
only with the +quickfix feature
terminal 1 if a terminal window
only with the +terminal feature
tabnr tab page number
topline first displayed buffer line
variables a reference to the dictionary with
window-local variables
width window width
winbar 1 if the window has a toolbar, 0
otherwise
wincol leftmost screen column of the window;
"col" from win_screenpos()
textoff number of columns occupied by any
'foldcolumn', 'signcolumn' and line
number in front of the text
winid window-ID
winnr window number
winrow topmost screen line of the window;
"row" from win_screenpos()
Can also be used as a method
:
GetWinnr()->getwininfo()