summaryrefslogtreecommitdiffstats
path: root/complete
diff options
context:
space:
mode:
authorAnthony Huang <anthony.huang@affirm.com>2021-05-25 21:41:11 -0400
committerAndrew Gallant <jamslam@gmail.com>2021-05-31 21:51:18 -0400
commit578e1992fa21d3612d3e613d8869dbbb16e33cbe (patch)
treed87e8e2aee7e4d0ad393b5d97023b6b6bd5b7da6 /complete
parent46d0130597a8340c19fdd41b107c209653451698 (diff)
cli: add --field-{context,match}-separator flags
These flags permit configuring the bytes used to delimit fields in match or context lines, where "fields" are things like the file path, line number, column number and the match/context itself. Fixes #1842, Closes #1871
Diffstat (limited to 'complete')
-rw-r--r--complete/_rg2
1 files changed, 2 insertions, 0 deletions
diff --git a/complete/_rg b/complete/_rg
index 73ec6c6d..31bc697c 100644
--- a/complete/_rg
+++ b/complete/_rg
@@ -303,6 +303,8 @@ _rg() {
'--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]'
+ '--field-context-separator[set string to delimit fields in context lines]'
+ '--field-match-separator[set string to delimit fields in matching lines]'
'--trace[show more verbose 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)]"