diff options
author | Andrew Gallant <jamslam@gmail.com> | 2018-08-21 18:35:19 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2018-08-21 23:05:52 -0400 |
commit | edd6eb4e06c528b668672ac32b45a62939802a83 (patch) | |
tree | 075b622f91e9ff11c3056ff6f98bdb936cdab258 /complete | |
parent | 7ac97829700d1e7a54b7b7e851cf266cdbad4071 (diff) |
ripgrep: make --no-pcre2-unicode the canonical flag
Previously, we used --pcre2-unicode as the canonical flag despite the
fact that it is enabled by default, which is inconsistent with how we
handle other similar flags.
The reason why --pcre2-unicode was made the canonical flag was to make
it easier to discover since it would be sorted near the --pcre2 flag. To
solve that problem, we simply start a convention that lists related
flags in the docs.
Fixes #1022
Diffstat (limited to 'complete')
-rw-r--r-- | complete/_rg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/complete/_rg b/complete/_rg index 490e6a18..fcb5bbf9 100644 --- a/complete/_rg +++ b/complete/_rg @@ -166,8 +166,8 @@ _rg() { $no'(pcre2-unicode)--no-pcre2[disable matching with PCRE2]' + '(pcre2-unicode)' # PCRE2 Unicode options - $no'(--no-pcre2-unicode)--pcre2-unicode[enable PCRE2 Unicode mode (with -P)]' - '(--no-pcre2-unicode)--no-pcre2-unicode[disable PCRE2 Unicode mode (with -P)]' + $no'(--no-pcre2 --no-pcre2-unicode)--pcre2-unicode[enable PCRE2 Unicode mode (with -P)]' + '(--no-pcre2 --pcre2-unicode)--no-pcre2-unicode[disable PCRE2 Unicode mode (with -P)]' + '(pre)' # Preprocessing options '(-z --search-zip)--pre=[specify preprocessor utility]:preprocessor utility:_command_names -e' |