1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-01-19 05:49:14 +02:00

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 sensitively otherwise.
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
.RE
.TP

View File

@ -300,7 +300,9 @@ Project home page: https://github.com/BurntSushi/ripgrep
-S, --smart-case
: Search case insensitively if the pattern is all lowercase.
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 results by file path. Note that this currently