Add note about --smart-case smartness

This commit is contained in:
dana 2017-12-18 15:04:56 -06:00 committed by Andrew Gallant
parent 86c890bcec
commit 162e085b98
2 changed files with 6 additions and 1 deletions

View File

@ -457,6 +457,9 @@ Overrides \-\-ignore\-case and \-\-smart\-case.
Search case insensitively if the pattern is all lowercase. Search case insensitively if the pattern is all lowercase.
Search case sensitively otherwise. Search case sensitively otherwise.
This is overridden by either \-\-case\-sensitive or \-\-ignore\-case. This is overridden by either \-\-case\-sensitive or \-\-ignore\-case.
Note: This feature is smart enough to treat simple classes like \\S as
lowercase, but may not handle more complex syntax like \\p{Ll} as
expected.
.RS .RS
.RE .RE
.TP .TP

View File

@ -300,7 +300,9 @@ Project home page: https://github.com/BurntSushi/ripgrep
-S, --smart-case -S, --smart-case
: Search case insensitively if the pattern is all lowercase. : Search case insensitively if the pattern is all lowercase.
Search case sensitively otherwise. This is overridden by either Search case sensitively otherwise. This is overridden by either
--case-sensitive or --ignore-case. --case-sensitive or --ignore-case. Note: This feature is smart enough
to treat simple classes like \\S as lowercase, but may not handle more
complex syntax like \\p{Ll} as expected.
--sort-files --sort-files
: Sort results by file path. Note that this currently : Sort results by file path. Note that this currently