Skip to main content
Module

x/ddc_vim/deps.ts>fn.tabpagewinnr

Dark deno-powered completion framework for neovim/Vim
Latest
function fn.tabpagewinnr
import { fn } from "https://deno.land/x/ddc_vim@v4.3.1/deps.ts";
const { tabpagewinnr } = fn;

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>