rgs: added multiline window limit and in-file result indexing (work in progress)
This commit is contained in:
@@ -96,6 +96,8 @@ _rg() {
|
||||
+ '(file-name)' # File-name options
|
||||
{-H,--with-filename}'[show file name for matches]'
|
||||
{-I,--no-filename}"[don't show file name for matches]"
|
||||
'--in-file-index[show per-file match index in output]'
|
||||
'--no-in-file-index[hide per-file match index in output]'
|
||||
|
||||
+ '(file-system)' # File system options
|
||||
"--one-file-system[don't descend into directories on other file systems]"
|
||||
@@ -210,6 +212,7 @@ _rg() {
|
||||
|
||||
+ '(multiline)' # Multiline options
|
||||
{-U,--multiline}'[permit matching across multiple lines]'
|
||||
'--multiline-window=[limit multiline matches to NUM lines (with -U)]:number of lines'
|
||||
$no'(multiline-dotall)--no-multiline[restrict matches to at most one line each]'
|
||||
|
||||
+ '(multiline-dotall)' # Multiline DOTALL options
|
||||
|
||||
Reference in New Issue
Block a user