diff options
author | dana <dana@dana.is> | 2018-07-23 19:19:22 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2018-07-24 07:21:18 -0400 |
commit | d857ad6ed3bab7a8525adef893795c6cfc0208a3 (patch) | |
tree | 19f19ab55e2536fe399bbf64bab8c2e9e076758e | |
parent | 4dd2f8e40e38158d48d5be054e9110446caa5f9e (diff) |
complete: add --no-pre, improve --pre/--search-zip exclusivity
-rw-r--r-- | complete/_rg | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/complete/_rg b/complete/_rg index 573467bf..4342e8d2 100644 --- a/complete/_rg +++ b/complete/_rg @@ -138,6 +138,10 @@ _rg() { '(--vimgrep count only replace)--passthru[show both matching and non-matching lines]' '!(--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 '(heading)'{-p,--pretty}'[alias for --color=always --heading -n]' '(heading passthru)--vimgrep[show results in vim-compatible format]' @@ -174,9 +178,8 @@ _rg() { {-w,--word-regexp}'[only show matches surrounded by word boundaries]' {-x,--line-regexp}'[only show matches surrounded by line boundaries]' - + '(input-decoding)' # Input decoding options - '--pre=[specify preprocessor utility]:preprocessor utility:_command_names -e' - {-z,--search-zip}'[search in compressed files]' + + '(zip)' # Compression options + '(--pre)'{-z,--search-zip}'[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 |