mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-21 23:23:47 -07:00
complete: add --no-pre, improve --pre/--search-zip exclusivity
This commit is contained in:
@@ -138,6 +138,10 @@ _rg() {
|
|||||||
'(--vimgrep count only replace)--passthru[show both matching and non-matching lines]'
|
'(--vimgrep count only replace)--passthru[show both matching and non-matching lines]'
|
||||||
'!(--vimgrep count only replace)--passthrough'
|
'!(--vimgrep count only replace)--passthrough'
|
||||||
|
|
||||||
|
+ '(pre)' # Preprocessing options
|
||||||
|
'(-z --search-zip)--pre=[specify preprocessor utility]:preprocessor utility:_command_names -e'
|
||||||
|
$no'--no-pre[disable preprocessor utility]'
|
||||||
|
|
||||||
+ '(pretty-vimgrep)' # Pretty/vimgrep display options
|
+ '(pretty-vimgrep)' # Pretty/vimgrep display options
|
||||||
'(heading)'{-p,--pretty}'[alias for --color=always --heading -n]'
|
'(heading)'{-p,--pretty}'[alias for --color=always --heading -n]'
|
||||||
'(heading passthru)--vimgrep[show results in vim-compatible format]'
|
'(heading passthru)--vimgrep[show results in vim-compatible format]'
|
||||||
@@ -174,9 +178,8 @@ _rg() {
|
|||||||
{-w,--word-regexp}'[only show matches surrounded by word boundaries]'
|
{-w,--word-regexp}'[only show matches surrounded by word boundaries]'
|
||||||
{-x,--line-regexp}'[only show matches surrounded by line boundaries]'
|
{-x,--line-regexp}'[only show matches surrounded by line boundaries]'
|
||||||
|
|
||||||
+ '(input-decoding)' # Input decoding options
|
+ '(zip)' # Compression options
|
||||||
'--pre=[specify preprocessor utility]:preprocessor utility:_command_names -e'
|
'(--pre)'{-z,--search-zip}'[search in compressed files]'
|
||||||
{-z,--search-zip}'[search in compressed files]'
|
|
||||||
$no"--no-search-zip[don't search in compressed files]"
|
$no"--no-search-zip[don't search in compressed files]"
|
||||||
|
|
||||||
+ misc # Other options — no need to separate these at the moment
|
+ misc # Other options — no need to separate these at the moment
|
||||||
|
Reference in New Issue
Block a user