From 66bc692ab3115d1e5774adee0dc3e74d53bf4139 Mon Sep 17 00:00:00 2001 From: Andrey Listopadov Date: Sat, 8 Jan 2022 10:39:49 +0300 Subject: [PATCH] fix: more clear explanation of default grep command --- rc/modules/fzf-grep.kak | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rc/modules/fzf-grep.kak b/rc/modules/fzf-grep.kak index 3f23704..bc0569e 100644 --- a/rc/modules/fzf-grep.kak +++ b/rc/modules/fzf-grep.kak @@ -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'