feat(live_grep): add glob and type filter shorthand opts (#1695)

This commit is contained in:
kylo252
2022-05-04 21:57:29 +02:00
committed by GitHub
parent 8d1841bff5
commit 3f3cba430e
3 changed files with 15 additions and 0 deletions

View File

@@ -764,6 +764,11 @@ builtin.live_grep({opts}) *telescope.builtin.live_grep()*
{search_dirs} (table) directory/directories to search in,
mutually exclusive with
`grep_open_files`
{glob_pattern} (string) argument to be used with `--glob`,
e.g. "*.toml", can use the opposite
"!*.toml"
{type_filter} (string) argument to be used with `--type`,
e.g. "rust", see `rg --type-list`
{additional_args} (function) function(opts) which returns a table
of additional arguments to be passed
on