btv.tabpage
btv.tabpage.current()
No documentation comment in the prelude.
Defined in api.lua.
btv.tabpage.list()
No documentation comment in the prelude.
Defined in api.lua.
btv.tabpage.is_valid(tab)
No documentation comment in the prelude.
Defined in api.lua.
btv.tabpage.number(tab)
No documentation comment in the prelude.
Defined in api.lua.
btv.tabpage.wins(tab)
No documentation comment in the prelude.
Defined in api.lua.
btv.tabpage.win(tab)
No documentation comment in the prelude.
Defined in api.lua.
btv.tabpage.set_current(tab)
btv.tabpage.set_current(tab) [alias nvim_set_current_tabpage]: make tab the
active tab page (0/nil = the current one, which is a no-op). The lone tab
MUTATION in the API — every other nvim_tabpage_* call is a read off the
btv._tabs mirror. The switch is queued for the server (btv._set_current_tab)
and written through the mirror, so a read later in the same chunk already agrees.
An unknown tab id fails loud rather than silently doing nothing.
Defined in api.lua.
btv.tabpage.nr(arg)
btv.tabpage.nr([arg]) [alias vim.fn.tabpagenr]: the current tab page’s 1-based
number, or with "$" the number of tab pages — the tab analogue of winnr(). Backs
the loop in a custom 'tabline' (for i = 1, tabpagenr('$')). Resolves from the
btv._tabs / btv._tab_order mirror the server pushes before evaluating the tabline.
Defined in api.lua.
btv.tabpage.buflist(nr)
btv.tabpage.buflist(nr) [alias vim.fn.tabpagebuflist]: the list of buffer numbers
shown in tab page nr (1-based; nil/0 is the current tab), one per window in that
tab — what a custom 'tabline' label reads to find the tab’s active file. Reads
the tab mirror’s per-window buffers (parallel to windows), which the server
fills for EVERY tab — unlike the global window mirror, which only carries the
current tab, so nvim_win_get_buf would resolve an inactive tab’s window to the
current buffer.
Defined in api.lua.