summaryrefslogtreecommitdiffstats
path: root/complete
diff options
context:
space:
mode:
authordana <dana@dana.is>2017-08-09 05:53:35 -0500
committerAndrew Gallant <jamslam@gmail.com>2017-08-09 06:53:35 -0400
commit40bacbcd7ce3247cf778e52e9367e2d675e0f153 (patch)
tree9863dc3849fc2cd129df03f353342ec17434af5f /complete
parentb3a9c34515ec087bb7325db81f60ce26aeee3fd9 (diff)
Add -x/--line-regexp (#520)
add -x/--line-regexp flag
Diffstat (limited to 'complete')
-rw-r--r--complete/_rg3
1 files changed, 2 insertions, 1 deletions
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'
)