docs(git_status): add missing opt expand_dir (#2824)
* docs(git_status): add missing opt `expand_dir` * [docgen] Update doc/telescope.txt skip-checks: true --------- Co-authored-by: Github Actions <actions@github>
This commit is contained in:
@@ -1148,6 +1148,8 @@ builtin.git_status({opts}) *telescope.builtin.git_status()*
|
|||||||
{git_icons} (table) string -> string. Matches name with icon
|
{git_icons} (table) string -> string. Matches name with icon
|
||||||
(see source code, make_entry.lua
|
(see source code, make_entry.lua
|
||||||
git_icon_defaults)
|
git_icon_defaults)
|
||||||
|
{expand_dir} (boolean) pass flag `-uall` to show files in
|
||||||
|
untracked directories (default: true)
|
||||||
|
|
||||||
|
|
||||||
builtin.git_stash({opts}) *telescope.builtin.git_stash()*
|
builtin.git_stash({opts}) *telescope.builtin.git_stash()*
|
||||||
@@ -1400,21 +1402,26 @@ builtin.buffers({opts}) *telescope.builtin.buffers()*
|
|||||||
including unloaded buffers
|
including unloaded buffers
|
||||||
(default: true)
|
(default: true)
|
||||||
{ignore_current_buffer} (boolean) if true, don't show the current
|
{ignore_current_buffer} (boolean) if true, don't show the current
|
||||||
buffer in the list (default: false)
|
buffer in the list (default:
|
||||||
{only_cwd} (boolean) if true, only show buffers in the
|
|
||||||
current working directory (default:
|
|
||||||
false)
|
false)
|
||||||
|
{only_cwd} (boolean) if true, only show buffers in the
|
||||||
|
current working directory
|
||||||
|
(default: false)
|
||||||
{cwd_only} (boolean) alias for only_cwd
|
{cwd_only} (boolean) alias for only_cwd
|
||||||
{sort_lastused} (boolean) Sorts current and last buffer to
|
{sort_lastused} (boolean) Sorts current and last buffer to
|
||||||
the top and selects the lastused
|
the top and selects the lastused
|
||||||
(default: false)
|
(default: false)
|
||||||
{sort_mru} (boolean) Sorts all buffers after most recent
|
{sort_mru} (boolean) Sorts all buffers after most
|
||||||
used. Not just the current and last
|
recent used. Not just the current
|
||||||
one (default: false)
|
and last one (default: false)
|
||||||
{bufnr_width} (number) Defines the width of the buffer
|
{bufnr_width} (number) Defines the width of the buffer
|
||||||
numbers in front of the filenames
|
numbers in front of the filenames
|
||||||
(default: dynamic)
|
(default: dynamic)
|
||||||
{file_encoding} (string) file encoding for the previewer
|
{file_encoding} (string) file encoding for the previewer
|
||||||
|
{sort_buffers} (function) sort fn(bufnr_a, bufnr_b). true if
|
||||||
|
bufnr_a should go first. Runs
|
||||||
|
after sorting by most recent (if
|
||||||
|
specified)
|
||||||
|
|
||||||
|
|
||||||
builtin.colorscheme({opts}) *telescope.builtin.colorscheme()*
|
builtin.colorscheme({opts}) *telescope.builtin.colorscheme()*
|
||||||
@@ -3312,8 +3319,7 @@ actions.to_fuzzy_refine({prompt_bufnr}) *telescope.actions.to_fuzzy_refine()*
|
|||||||
|
|
||||||
|
|
||||||
actions.delete_mark({prompt_bufnr}) *telescope.actions.delete_mark()*
|
actions.delete_mark({prompt_bufnr}) *telescope.actions.delete_mark()*
|
||||||
Delete the selected mark or all the marks selected using multi
|
Delete the selected mark or all the marks selected using multi selection.
|
||||||
selection.
|
|
||||||
|
|
||||||
|
|
||||||
Parameters: ~
|
Parameters: ~
|
||||||
|
|||||||
@@ -365,12 +365,13 @@ git.status = function(opts)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local args = { "status", "--porcelain=v1", "--", "." }
|
||||||
|
|
||||||
local gen_new_finder = function()
|
local gen_new_finder = function()
|
||||||
local expand_dir = vim.F.if_nil(opts.expand_dir, true)
|
if vim.F.if_nil(opts.expand_dir, true) then
|
||||||
local git_cmd = git_command({ "status", "--porcelain=v1", "--", "." }, opts)
|
table.insert(args, #args - 1, "-uall")
|
||||||
if expand_dir then
|
|
||||||
table.insert(git_cmd, #git_cmd - 1, "-u")
|
|
||||||
end
|
end
|
||||||
|
local git_cmd = git_command(args, opts)
|
||||||
opts.entry_maker = vim.F.if_nil(opts.entry_maker, make_entry.gen_from_git_status(opts))
|
opts.entry_maker = vim.F.if_nil(opts.entry_maker, make_entry.gen_from_git_status(opts))
|
||||||
return finders.new_oneshot_job(git_cmd, opts)
|
return finders.new_oneshot_job(git_cmd, opts)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -216,6 +216,7 @@ builtin.git_branches = require_on_exported_call("telescope.builtin.__git").branc
|
|||||||
---@field use_file_path boolean: if we should use the current buffer git root (default: false)
|
---@field use_file_path boolean: if we should use the current buffer git root (default: false)
|
||||||
---@field use_git_root boolean: if we should use git root as cwd or the cwd (important for submodule) (default: true)
|
---@field use_git_root boolean: if we should use git root as cwd or the cwd (important for submodule) (default: true)
|
||||||
---@field git_icons table: string -> string. Matches name with icon (see source code, make_entry.lua git_icon_defaults)
|
---@field git_icons table: string -> string. Matches name with icon (see source code, make_entry.lua git_icon_defaults)
|
||||||
|
---@field expand_dir boolean: pass flag `-uall` to show files in untracked directories (default: true)
|
||||||
builtin.git_status = require_on_exported_call("telescope.builtin.__git").status
|
builtin.git_status = require_on_exported_call("telescope.builtin.__git").status
|
||||||
|
|
||||||
--- Lists stash items in current repository
|
--- Lists stash items in current repository
|
||||||
|
|||||||
Reference in New Issue
Block a user