summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2017-02-02 15:29:50 +0100
committerAndrew Gallant <jamslam@gmail.com>2017-03-12 21:21:28 -0400
commitd352b792944af6dc5d818b1ed3119f0914dfce38 (patch)
tree8f199062da76cdee8c7e5558ea9f8795e2160200 /doc
parent23aec586696afb5d3cda1081d63f9641caad1045 (diff)
Add new -M/--max-columns option.
This permits setting the maximum line width with respect to the number of bytes in a line. Omitted lines (whether part of a match, replacement or context) are replaced with a message stating that the line was elided. Fixes #129
Diffstat (limited to 'doc')
-rw-r--r--doc/rg.1.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/rg.1.md b/doc/rg.1.md
index d8e498c0..8e8ca289 100644
--- a/doc/rg.1.md
+++ b/doc/rg.1.md
@@ -203,6 +203,10 @@ Project home page: https://github.com/BurntSushi/ripgrep
-L, --follow
: Follow symlinks.
+-M, --max-columns *NUM*
+: Don't print lines longer than this limit in bytes. Longer lines are omitted,
+ and only the number of matches in that line is printed.
+
-m, --max-count *NUM*
: Limit the number of matching lines per file searched to NUM.