summaryrefslogtreecommitdiffstats
path: root/complete
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2020-02-17 15:34:59 -0500
committerAndrew Gallant <jamslam@gmail.com>2020-02-17 17:16:28 -0500
commit75cbe88fa2993bcb12cbbddb32670cba30527716 (patch)
treeda811502ed5db6b08949dd11686f06ede576765c /complete
parent711426a632aee0affb7009cd8e3492c4ff7273e8 (diff)
cli: add --no-unicode, deprecate --no-pcre2-unicode
This adds a universal --no-unicode flag that is intended to work for all supported regex engines. There is no point in retaining --no-pcre2-unicode, so we make them aliases to the new flags and deprecate them.
Diffstat (limited to 'complete')
-rw-r--r--complete/_rg6
1 files changed, 6 insertions, 0 deletions
diff --git a/complete/_rg b/complete/_rg
index 82dc3cdb..44d63e63 100644
--- a/complete/_rg
+++ b/complete/_rg
@@ -144,6 +144,8 @@ _rg() {
+ '(ignore-vcs)' # VCS ignore-file options
"--no-ignore-vcs[don't respect version control ignore files]"
$no'--ignore-vcs[respect version control ignore files]'
+
+ + '(require-git)' # git specific settings
"--no-require-git[don't require git repository to respect gitignore rules]"
$no'--require-git[require git repository to respect gitignore rules]'
@@ -270,6 +272,10 @@ _rg() {
{-w,--word-regexp}'[only show matches surrounded by word boundaries]'
{-x,--line-regexp}'[only show matches surrounded by line boundaries]'
+ + '(unicode)' # Unicode options
+ $no'--unicode[enable Unicode mode]'
+ '--no-unicode[disable Unicode mode]'
+
+ '(zip)' # Compression options
'(--pre)'{-z,--search-zip}'[search in compressed files]'
$no"--no-search-zip[don't search in compressed files]"