From 231456c409ff38c75c39d01b781b569965ddf808 Mon Sep 17 00:00:00 2001 From: Charles Blake Date: Fri, 13 Jul 2018 09:54:51 -0400 Subject: 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 --- complete/_rg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'complete') diff --git a/complete/_rg b/complete/_rg index 586c90b4..b943484d 100644 --- a/complete/_rg +++ b/complete/_rg @@ -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]" -- cgit v1.2.3