ripgrep: add --pre flag

The preprocessor flag accepts a command program and executes this
program for every input file that is searched. Instead of searching the
file directly, ripgrep will instead search the stdout contents of the
program.

Closes #978, Closes #981
This commit is contained in:
Charles Blake
2018-07-13 09:54:51 -04:00
committed by Andrew Gallant
parent 1d09d4d31b
commit 231456c409
9 changed files with 211 additions and 5 deletions

View File

@@ -170,7 +170,8 @@ _rg() {
{-w,--word-regexp}'[only show matches surrounded by word boundaries]'
{-x,--line-regexp}'[only show matches surrounded by line boundaries]'
+ '(zip)' # Compressed-file options
+ '(input-decoding)' # Input decoding options
'--pre=[specify preprocessor utility]:preprocessor utility:_command_names -e'
{-z,--search-zip}'[search in compressed files]'
$no"--no-search-zip[don't search in compressed files]"