diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rg.1 | 5 | ||||
-rw-r--r-- | doc/rg.1.md | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -274,8 +274,11 @@ Only show path of each file with no matches. .RE .TP .B \-H, \-\-with\-filename -Prefix each match with the file name that contains it. +Display the file name for matches. This is the default when more than one file is searched. +If \-\-heading is enabled, the file name will be shown above clusters of +matches from each file; otherwise, the file name will be shown on each +match. .RS .RE .TP diff --git a/doc/rg.1.md b/doc/rg.1.md index 56fb5858..a069691e 100644 --- a/doc/rg.1.md +++ b/doc/rg.1.md @@ -182,8 +182,10 @@ Project home page: https://github.com/BurntSushi/ripgrep : Only show path of each file with no matches. -H, --with-filename -: Prefix each match with the file name that contains it. This is the - default when more than one file is searched. +: Display the file name for matches. This is the default when + more than one file is searched. If --heading is enabled, the + file name will be shown above clusters of matches from each + file; otherwise, the file name will be shown on each match. --no-filename : Never show the filename for a match. This is the default when |