mirror of
https://github.com/folke/snacks.nvim
synced 2025-07-24 05:25:38 +00:00
feat(picker): added git_grep
picker. Closes #986
This commit is contained in:
parent
155e219f04
commit
2dc901634b
2 changed files with 59 additions and 0 deletions
|
@ -240,6 +240,22 @@ M.git_files = {
|
|||
submodules = false,
|
||||
}
|
||||
|
||||
-- Grep in git files
|
||||
---@class snacks.picker.git.grep.Config: snacks.picker.Config
|
||||
---@field untracked? boolean search in untracked files
|
||||
---@field submodules? boolean search in submodule files
|
||||
---@field need_search? boolean require a search pattern
|
||||
M.git_grep = {
|
||||
finder = "git_grep",
|
||||
format = "file",
|
||||
untracked = false,
|
||||
need_search = true,
|
||||
submodules = false,
|
||||
show_empty = true,
|
||||
supports_live = true,
|
||||
live = true,
|
||||
}
|
||||
|
||||
-- Git log
|
||||
---@class snacks.picker.git.log.Config: snacks.picker.Config
|
||||
---@field follow? boolean track file history across renames
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue