mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(picker): added args
option for files
and grep
. Closes #621
This commit is contained in:
parent
c258a6ef87
commit
781b6f6ab0
3 changed files with 8 additions and 0 deletions
|
@ -60,6 +60,9 @@ local function get_cmd(opts, filter)
|
|||
args[#args + 1] = "-L"
|
||||
end
|
||||
|
||||
-- extra args
|
||||
vim.list_extend(args, opts.args or {})
|
||||
|
||||
-- file glob
|
||||
---@type string?
|
||||
local pattern, pargs = Snacks.picker.util.parse(filter.search)
|
||||
|
|
|
@ -66,6 +66,9 @@ local function get_cmd(opts, filter)
|
|||
args[#args + 1] = g
|
||||
end
|
||||
|
||||
-- extra args
|
||||
vim.list_extend(args, opts.args or {})
|
||||
|
||||
args[#args + 1] = "--"
|
||||
|
||||
-- search pattern
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue