1
0
Fork 0

fix: more clear explanation of default grep command

This commit is contained in:
Andrey Listopadov 2022-01-08 10:39:49 +03:00 committed by GitHub
parent 68f21eb786
commit 66bc692ab3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,11 +8,13 @@ hook global ModuleLoaded fzf %{
provide-module fzf-grep %§
declare-option -docstring "what command to use to provide list of grep search matches.
Grep output must follow the format of 'filename:line-number:text'
declare-option -docstring "hat command to use to provide a list of grep search matches.
Grep output must follow the format of 'filename:line-number:text', and specify a pattern to match across all file contents.
By default, an empty pattern is searched, effectively matching every line in every file.
GNU grep and ripgrep are supported by default.
Default value:
grep -RHn" \
grep -RHn '' ." \
str fzf_grep_command 'grep'