diff options
author | Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com> | 2019-09-26 14:50:40 +0300 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2020-02-17 17:16:28 -0500 |
commit | e71eedf0eb802c27541292f06676aa782be9bd21 (patch) | |
tree | ea54ad6eceeee6e08aa85f23809132c9780d8ceb /complete | |
parent | 88f46d12f1f3f7c2eac925ecb0b1c816ffddb943 (diff) |
cli: add --no-context-separator flag
--context-separator='' still adds a new line separator, which could
still potentially be useful. So we add a new `--no-context-separator`
flag that completely disables context separators even when the -A/-B/-C
context flags are used.
Closes #1390
Diffstat (limited to 'complete')
-rw-r--r-- | complete/_rg | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/complete/_rg b/complete/_rg index d7dcfd64..d77ef5b6 100644 --- a/complete/_rg +++ b/complete/_rg @@ -277,6 +277,7 @@ _rg() { ))' '*--colors=[specify color and style settings]: :->colorspec' '--context-separator=[specify string used to separate non-continuous context lines in output]:separator' + $no"--no-context-separator[don't print context separators]" '--debug[show debug messages]' '--dfa-size-limit=[specify upper size limit of generated DFA]:DFA size (bytes)' "(1 stats)--files[show each file that would be searched (but don't search)]" |