picker(live_grep): add option to grep only over open files (#666)

This commit is contained in:
James Walmsley
2021-04-14 16:31:22 +01:00
committed by GitHub
parent c5f0d05835
commit 07d518105c
2 changed files with 37 additions and 5 deletions

View File

@@ -374,6 +374,14 @@ Built-in functions. Ready to be bound to any key you like. :smile:
| `builtin.live_grep` | Searches in current directory files. (respecting .gitignore) |
| `builtin.file_browser` | Ivy-like file explorer. Creates files by typing in filename and pressing `<C-e>`. Press `<C-e>` without prompt for more info |
#### Options for builtin.live_grep
| Keys | Description | Options |
|------------------------|-------------------------------------------------------|--------------|
| `grep_open_files` | Restrict live_grep to currently open files. | boolean |
| `search_dirs` | List of directories to search in. | list |
### Vim Pickers
| Functions | Description |