Skip to main content
Module

x/denops_std/function/mod.ts>win_gettype

📚 Standard module for denops.vim
Go to Latest
function win_gettype
import { win_gettype } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

Return the type of the window: "autocmd" autocommand window. Temporary window used to execute autocommands. "command" command-line window cmdwin (empty) normal window "loclist" location-list-window "popup" popup window popup "preview" preview window preview-window "quickfix" quickfix-window "unknown" window {nr} not found

When {nr} is omitted return the type of the current window. When {nr} is given return the type of this window by number or window-ID.

Also see the 'buftype' option. When running a terminal in a popup window then 'buftype' is "terminal" and win_gettype() returns "popup".

Can also be used as a method:

GetWinid()->win_gettype()

Parameters

denops: Denops
optional
nr: unknown

Returns

Promise<string>