summaryrefslogtreecommitdiffstats
path: root/complete
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-09-04 22:45:24 -0400
committerAndrew Gallant <jamslam@gmail.com>2018-09-04 23:18:55 -0400
commit241bc8f8fcfdc725afa65ee539c37960b10550b1 (patch)
treed5ae44155e4d3c91f6a70c5a23f2d2d29d99d668 /complete
parentb6e30124e07fb3b3530bae2c0cf19e0893aa9831 (diff)
ripgrep: add --pre-glob flag
The --pre-glob flag is like the --glob flag, except it applies to filtering files through the preprocessor instead of for search. This makes it possible to apply the preprocessor to only a small subset of files, which can greatly reduce the process overhead of using a preprocessor when searching large directories.
Diffstat (limited to 'complete')
-rw-r--r--complete/_rg3
1 files changed, 3 insertions, 0 deletions
diff --git a/complete/_rg b/complete/_rg
index 2bbdf992..6f7b0ef8 100644
--- a/complete/_rg
+++ b/complete/_rg
@@ -183,6 +183,9 @@ _rg() {
'(-z --search-zip)--pre=[specify preprocessor utility]:preprocessor utility:_command_names -e'
$no'--no-pre[disable preprocessor utility]'
+ + pre-glob # Preprocessing glob options
+ '*--pre-glob[include/exclude files for preprocessing with --pre]'
+
+ '(pretty-vimgrep)' # Pretty/vimgrep display options
'(heading)'{-p,--pretty}'[alias for --color=always --heading -n]'
'(heading passthru)--vimgrep[show results in vim-compatible format]'