From 40bacbcd7ce3247cf778e52e9367e2d675e0f153 Mon Sep 17 00:00:00 2001 From: dana Date: Wed, 9 Aug 2017 05:53:35 -0500 Subject: Add -x/--line-regexp (#520) add -x/--line-regexp flag --- complete/_rg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'complete') diff --git a/complete/_rg b/complete/_rg index 07d3833a..ec4863b8 100644 --- a/complete/_rg +++ b/complete/_rg @@ -45,6 +45,7 @@ _rg() { '--ignore-file=[specify additional ignore file]:file:_files' '(-v --invert-match)'{-v,--invert-match}'[invert matching]' '(-n -N --line-number --no-line-number)'{-n,--line-number}'[show line numbers]' + '(-w -x --line-regexp --word-regexp)'{-x,--line-regexp}'[only show matches surrounded by line boundaries]' '(-M --max-columns)'{-M+,--max-columns=}'[specify max length of lines to print]:number of bytes' '(-m --max-count)'{-m+,--max-count=}'[specify max number of matches per file]:number of matches' '--max-filesize=[specify size above which files should be ignored]:file size' @@ -80,7 +81,7 @@ _rg() { '(: -)'{-V,--version}'[display version information]' '(-p --heading --no-heading --pretty)--vimgrep[show results in vim-compatible format]' '(-H --no-filename --with-filename)'{-H,--with-filename}'[prefix each match with name of file that contains it]' - '(-w --word-regexp)'{-w,--word-regexp}'[only show matches surrounded by word boundaries]' + '(-w -x --line-regexp --word-regexp)'{-w,--word-regexp}'[only show matches surrounded by word boundaries]' '(-e -f --file --files --regexp --type-list)1: :_rg_pattern' '(--type-list)*:file:_files' ) -- cgit v1.2.3