mirror of
https://github.com/neovim/neovim.git
synced 2026-05-28 15:55:34 +00:00
docs: rename "tabpage"
This commit is contained in:
71
runtime/lua/vim/_meta/vimfn.gen.lua
generated
71
runtime/lua/vim/_meta/vimfn.gen.lua
generated
@@ -154,7 +154,7 @@ function vim.fn.argidx() end
|
||||
--- Returns -1 if the arguments are invalid.
|
||||
---
|
||||
--- Without arguments use the current window.
|
||||
--- With {winnr} only use this window in the current tab page.
|
||||
--- With {winnr} only use this window in the current tabpage.
|
||||
--- With {winnr} and {tabnr} use the window in the specified tab
|
||||
--- page.
|
||||
--- {winnr} can be the window number or the |window-ID|.
|
||||
@@ -670,7 +670,7 @@ function vim.fn.bufnr(buf, create) end
|
||||
---
|
||||
--- echo "A window containing buffer 1 is " .. (bufwinid(1))
|
||||
--- <
|
||||
--- Only deals with the current tab page. See |win_findbuf()| for
|
||||
--- Only deals with the current tabpage. See |win_findbuf()| for
|
||||
--- finding more.
|
||||
---
|
||||
--- @param buf any
|
||||
@@ -950,14 +950,14 @@ function vim.fn.charidx(string, idx, countcc, utf16) end
|
||||
--- changed to the scope of the current directory:
|
||||
--- - If the window local directory (|:lcd|) is set, it
|
||||
--- changes the current working directory for that scope.
|
||||
--- - Otherwise, if the tab page local directory (|:tcd|) is
|
||||
--- - Otherwise, if the tabpage local directory (|:tcd|) is
|
||||
--- set, it changes the current directory for that scope.
|
||||
--- - Otherwise, changes the global directory for that scope.
|
||||
---
|
||||
--- If {scope} is present, changes the current working directory
|
||||
--- for the specified scope:
|
||||
--- "window" Changes the window local directory. |:lcd|
|
||||
--- "tabpage" Changes the tab page local directory. |:tcd|
|
||||
--- "tabpage" Changes the tabpage local directory. |:tcd|
|
||||
--- "global" Changes the global directory. |:cd|
|
||||
---
|
||||
--- {dir} must be a String.
|
||||
@@ -3454,7 +3454,7 @@ function vim.fn.getftype(fname) end
|
||||
--- Returns the |jumplist| for the specified window.
|
||||
---
|
||||
--- Without arguments use the current window.
|
||||
--- With {winnr} only use this window in the current tab page.
|
||||
--- With {winnr} only use this window in the current tabpage.
|
||||
--- {winnr} can also be a |window-ID|.
|
||||
--- With {winnr} and {tabnr} use the window in the specified tab
|
||||
--- page. If {winnr} or {tabnr} is invalid, an empty list is
|
||||
@@ -4056,16 +4056,16 @@ function vim.fn.getscriptinfo(opts) end
|
||||
function vim.fn.getstacktrace() end
|
||||
|
||||
--- If {tabnr} is not specified, then information about all the
|
||||
--- tab pages is returned as a |List|. Each List item is a
|
||||
--- |Dictionary|. Otherwise, {tabnr} specifies the tab page
|
||||
--- tabpages is returned as a |List|. Each List item is a
|
||||
--- |Dictionary|. Otherwise, {tabnr} specifies the tabpage
|
||||
--- number and information about that one is returned. If the tab
|
||||
--- page does not exist an empty List is returned.
|
||||
---
|
||||
--- Each List item is a |Dictionary| with the following entries:
|
||||
--- tabnr tab page number.
|
||||
--- tabnr |tabpage-number|
|
||||
--- variables a reference to the dictionary with
|
||||
--- tabpage-local variables
|
||||
--- windows List of |window-ID|s in the tab page.
|
||||
--- windows List of |window-ID|s in the tabpage.
|
||||
---
|
||||
--- @param tabnr? integer
|
||||
--- @return any
|
||||
@@ -4073,7 +4073,7 @@ function vim.fn.gettabinfo(tabnr) end
|
||||
|
||||
--- Lua: Prefer |nvim_tabpage_get_var()| or |vim.t|.
|
||||
---
|
||||
--- Get the value of a tab-local variable {varname} in tab page
|
||||
--- Get the value of a tab-local variable {varname} in tabpage
|
||||
--- {tabnr}. |t:var|
|
||||
--- Tabs are numbered starting with one.
|
||||
--- The {varname} argument is a string. When {varname} is empty a
|
||||
@@ -4091,7 +4091,7 @@ function vim.fn.gettabvar(tabnr, varname, def) end
|
||||
--- Lua: Prefer |nvim_win_get_var()| or |vim.w| after resolving {tabnr} and {winnr} to a winid; option names use |nvim_get_option_value()| or |vim.wo|.
|
||||
---
|
||||
--- Get the value of window-local variable {varname} in window
|
||||
--- {winnr} in tab page {tabnr}.
|
||||
--- {winnr} in tabpage {tabnr}.
|
||||
--- The {varname} argument is a string. When {varname} is empty a
|
||||
--- dictionary with all window-local variables is returned.
|
||||
--- When {varname} is equal to "&" get the values of all
|
||||
@@ -4175,7 +4175,7 @@ function vim.fn.gettext(text) end
|
||||
--- exist the result is an empty list.
|
||||
---
|
||||
--- Without {winid} information about all the windows in all the
|
||||
--- tab pages is returned.
|
||||
--- tabpages is returned.
|
||||
---
|
||||
--- Each List item is a |Dictionary| with the following entries:
|
||||
--- botline last complete displayed buffer line
|
||||
@@ -4186,7 +4186,7 @@ function vim.fn.gettext(text) end
|
||||
--- loclist 1 if showing a location list
|
||||
--- quickfix 1 if quickfix or location list window
|
||||
--- status_height status lines height (0 or 1)
|
||||
--- tabnr tab page number
|
||||
--- tabnr |tabpage-number|
|
||||
--- terminal 1 if a terminal window
|
||||
--- textoff number of columns occupied by any
|
||||
--- 'foldcolumn', 'signcolumn' and line
|
||||
@@ -8889,7 +8889,7 @@ function vim.fn.setreg(regname, value, options) end
|
||||
|
||||
--- Lua: Prefer |nvim_tabpage_set_var()| or |vim.t|.
|
||||
---
|
||||
--- Set tab-local variable {varname} to {val} in tab page {tabnr}.
|
||||
--- Set tab-local variable {varname} to {val} in tabpage {tabnr}.
|
||||
--- |t:var|
|
||||
--- The {varname} argument is a string.
|
||||
--- Note that the variable name without "t:" must be used.
|
||||
@@ -8967,7 +8967,7 @@ function vim.fn.settagstack(nr, dict, action) end
|
||||
|
||||
--- Lua: Prefer |nvim_win_set_var()| or |vim.w| after resolving {nr} to a winid; option names use |nvim_set_option_value()|.
|
||||
---
|
||||
--- Like |settabwinvar()| for the current tab page.
|
||||
--- Like |settabwinvar()| for the current tabpage.
|
||||
--- Examples: >vim
|
||||
--- call setwinvar(1, "&list", 0)
|
||||
--- call setwinvar(2, "myvar", "foobar")
|
||||
@@ -10633,9 +10633,9 @@ function vim.fn.systemlist(cmd, input, keepempty) end
|
||||
--- Lua: Prefer |nvim_tabpage_list_wins()| with |nvim_win_get_buf()|; invalid tabpages error instead of returning 0.
|
||||
---
|
||||
--- Returns a |List| of buffer numbers, one for each window in
|
||||
--- the specified tab page.
|
||||
--- {arg} specifies the number of the tab page to be used. When
|
||||
--- omitted the current tab page is used.
|
||||
--- the specified tabpage.
|
||||
--- {arg} specifies the number of the tabpage to be used. When
|
||||
--- omitted the current tabpage is used.
|
||||
--- When {arg} is invalid the number zero is returned.
|
||||
--- To get a list of all buffers in all tabs use this: >vim
|
||||
--- let buflist = []
|
||||
@@ -10650,15 +10650,12 @@ function vim.fn.tabpagebuflist(arg) end
|
||||
|
||||
--- Lua: Prefer |nvim_tabpage_get_number()| with |nvim_get_current_tabpage()| for the current tab, or `#vim.api.nvim_list_tabpages()` for "$"; "#" differs.
|
||||
---
|
||||
--- Returns the number of the current tab page. The first tab
|
||||
--- page has number 1.
|
||||
--- Returns the current |tabpage-number|.
|
||||
---
|
||||
--- The optional argument {arg} supports the following values:
|
||||
--- $ the number of the last tab page (the tab page
|
||||
--- count).
|
||||
--- # the number of the last accessed tab page
|
||||
--- (where |g<Tab>| goes to). If there is no
|
||||
--- previous tab page, 0 is returned.
|
||||
--- $ the last |tabpage-number| (the tabpage count).
|
||||
--- # the last-accessed |tabpage-number| (where |g<Tab>|
|
||||
--- goes to), or 0 if there is no previous tabpage.
|
||||
--- The number can be used with the |:tab| command.
|
||||
---
|
||||
--- Returns zero on error.
|
||||
@@ -10669,16 +10666,16 @@ function vim.fn.tabpagenr(arg) end
|
||||
|
||||
--- Lua: Prefer |nvim_win_get_number()| with |nvim_tabpage_get_win()| for the current window, or the length of |nvim_tabpage_list_wins()| for "$"; "#" and invalid-tab behavior differ.
|
||||
---
|
||||
--- Like |winnr()| but for tab page {tabarg}.
|
||||
--- {tabarg} specifies the number of tab page to be used.
|
||||
--- Like |winnr()| but for tabpage {tabarg}.
|
||||
--- {tabarg} specifies the |tabpage-number| 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.
|
||||
--- the window which will be used when going to this tabpage.
|
||||
--- - When "$" the number of windows is returned.
|
||||
--- - When "#" the previous window nr is returned.
|
||||
--- Useful examples: >vim
|
||||
--- tabpagewinnr(1) " current window of tab page 1
|
||||
--- tabpagewinnr(4, '$') " number of windows in tab page 4
|
||||
--- tabpagewinnr(1) " current window of tabpage 1
|
||||
--- tabpagewinnr(4, '$') " number of windows in tabpage 4
|
||||
--- <When {tabarg} is invalid zero is returned.
|
||||
---
|
||||
--- @param tabarg integer
|
||||
@@ -11397,7 +11394,7 @@ function vim.fn.win_id2win(expr) end
|
||||
--- FALSE otherwise.
|
||||
--- This will fail for the rightmost window and a full-width
|
||||
--- window, since it has no separator on the right.
|
||||
--- Only works for the current tab page. *E1308*
|
||||
--- Only works for the current tabpage. *E1308*
|
||||
---
|
||||
--- @param nr integer
|
||||
--- @param offset integer
|
||||
@@ -11413,7 +11410,7 @@ function vim.fn.win_move_separator(nr, offset) end
|
||||
--- magnitude of movement may be smaller than specified (e.g., as
|
||||
--- a consequence of maintaining 'winminheight'). Returns TRUE if
|
||||
--- the window can be found and FALSE otherwise.
|
||||
--- Only works for the current tab page.
|
||||
--- Only works for the current tabpage.
|
||||
---
|
||||
--- @param nr integer
|
||||
--- @param offset integer
|
||||
@@ -11439,7 +11436,7 @@ function vim.fn.win_screenpos(nr) end
|
||||
--- (the |window-ID| of window {nr} is unchanged after the move).
|
||||
---
|
||||
--- Both {nr} and {target} can be window numbers or |window-ID|s.
|
||||
--- Both must be in the current tab page.
|
||||
--- Both must be in the current tabpage.
|
||||
---
|
||||
--- Returns zero for success, non-zero for failure.
|
||||
---
|
||||
@@ -11518,7 +11515,7 @@ function vim.fn.winheight(nr) end
|
||||
--- ["row", [{nested list of windows}]]
|
||||
--- <
|
||||
--- Example: >vim
|
||||
--- " Only one window in the tab page
|
||||
--- " Only one window in the tabpage
|
||||
--- echo winlayout()
|
||||
--- < >
|
||||
--- ['leaf', 1000]
|
||||
@@ -11528,7 +11525,7 @@ function vim.fn.winheight(nr) end
|
||||
--- < >
|
||||
--- ['col', [['leaf', 1000], ['leaf', 1001]]]
|
||||
--- < >vim
|
||||
--- " The second tab page, with three horizontally split
|
||||
--- " The second tabpage, with three horizontally split
|
||||
--- " windows, with two vertically split windows in the
|
||||
--- " middle window
|
||||
--- echo winlayout(2)
|
||||
@@ -11561,7 +11558,7 @@ function vim.fn.winline() end
|
||||
--- count).
|
||||
--- # the number of the last accessed window (where
|
||||
--- |CTRL-W_p| goes to). If there is no previous
|
||||
--- window or it is in another tab page 0 is
|
||||
--- window or it is in another tabpage, 0 is
|
||||
--- returned. May refer to the current window in
|
||||
--- some cases (e.g. when evaluating 'statusline'
|
||||
--- expressions).
|
||||
@@ -11589,7 +11586,7 @@ function vim.fn.winnr(arg) end
|
||||
|
||||
--- Returns a sequence of |:resize| commands that should restore
|
||||
--- the current window sizes. Only works properly when no windows
|
||||
--- are opened or closed and the current window and tab page is
|
||||
--- are opened or closed and the current window and tabpage is
|
||||
--- unchanged.
|
||||
--- Example: >vim
|
||||
--- let cmd = winrestcmd()
|
||||
|
||||
Reference in New Issue
Block a user