Skip to main content
Module

x/denops_std/function/mod.ts>tabpagewinnr

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

Like winnr() but for tab page {tabarg}. {tabarg} specifies the number of tab page to be used. {arg} is used like with winnr():

  • When omitted the current window number is returned. This is the window which will be used when going to this tab page.

  • When "$" the number of windows is returned.

  • When "#" the previous window nr is returned. Useful examples:

    tabpagewinnr(1) " current window of tab page 1 tabpagewinnr(4, '$') " number of windows in tab page 4

When {tabarg} is invalid zero is returned.

Can also be used as a method:

GetTabpage()->tabpagewinnr()

Parameters

denops: Denops
tabarg: unknown
optional
arg: unknown

Returns

Promise<number>