From ece1f50cfe49fea324d96f97a2ae00ebbd0cad03 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sat, 13 Apr 2019 18:35:24 -0400 Subject: printer: support previews for long lines This commit adds support for showing a preview of long lines. While the default still remains as completely suppressing the entire line, this new functionality will show the first N graphemes of a matching line, including the number of matches that are suppressed. This was unfortunately a fairly invasive change to the printer that required a bit of refactoring. On the bright side, the single line and multi-line coloring are now more unified than they were before. Closes #1078 --- GUIDE.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'GUIDE.md') diff --git a/GUIDE.md b/GUIDE.md index 907ab382..f6316137 100644 --- a/GUIDE.md +++ b/GUIDE.md @@ -538,8 +538,9 @@ formatting peculiarities: ``` $ cat $HOME/.ripgreprc -# Don't let ripgrep vomit really long lines to my terminal. +# Don't let ripgrep vomit really long lines to my terminal, and show a preview. --max-columns=150 +--max-column-preview # Add my 'web' type. --type-add -- cgit v1.2.3