feat(picker): added args option for files and grep. Closes #621

This commit is contained in:
Folke Lemaitre 2025-01-19 22:01:22 +01:00
parent c258a6ef87
commit 781b6f6ab0
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 8 additions and 0 deletions

View file

@ -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)