From 5fad26ca4fae7169f5bba8fa6718d58cb2c0bd20 Mon Sep 17 00:00:00 2001 From: Carlo Sala Date: Fri, 11 Feb 2022 20:45:09 +0100 Subject: [PATCH] feat(ripgrep): update `rg` completion to v13.0.0 (#10687) Source: https://github.com/BurntSushi/ripgrep/blob/13.0.0/complete/_rg --- plugins/ripgrep/README.md | 4 ---- plugins/ripgrep/_ripgrep | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/ripgrep/README.md b/plugins/ripgrep/README.md index a26f45823..ab9d04116 100644 --- a/plugins/ripgrep/README.md +++ b/plugins/ripgrep/README.md @@ -7,7 +7,3 @@ To use it, add `ripgrep` to the plugins array in your zshrc file: ```zsh plugins=(... ripgrep) ``` - -Completion is taken from the ripgrep release [`12.1.1`](https://github.com/BurntSushi/ripgrep/releases/tag/12.1.1). - -Updated on April 1st, 2021. diff --git a/plugins/ripgrep/_ripgrep b/plugins/ripgrep/_ripgrep index 828a6e601..31bc697c7 100644 --- a/plugins/ripgrep/_ripgrep +++ b/plugins/ripgrep/_ripgrep @@ -121,7 +121,7 @@ _rg() { "(pretty-vimgrep)--no-heading[don't show matches grouped by file name]" + '(hidden)' # Hidden-file options - '--hidden[search hidden files and directories]' + {-.,--hidden}'[search hidden files and directories]' $no"--no-hidden[don't search hidden files and directories]" + '(hybrid)' # hybrid regex options @@ -303,6 +303,8 @@ _rg() { '--context-separator=[specify string used to separate non-continuous context lines in output]:separator' $no"--no-context-separator[don't print context separators]" '--debug[show debug messages]' + '--field-context-separator[set string to delimit fields in context lines]' + '--field-match-separator[set string to delimit fields in matching lines]' '--trace[show more verbose debug messages]' '--dfa-size-limit=[specify upper size limit of generated DFA]:DFA size (bytes)' "(1 stats)--files[show each file that would be searched (but don't search)]"