complete: add extra-verbose support to _rg_types

When the extra-verbose style is set for the types tag, completed types
are displayed along with the patterns they correspond to. This can be
enabled by e.g. adding the following to .zshrc:

  zstyle ':completion:*:rg:*:types' extra-verbose true

This change also makes _rg_types use the actual rg specified on the
command line to look up types, and it fixes a mangled complete-all
style check

Fixes #2195
This commit is contained in:
dana
2022-04-26 21:19:09 -05:00
committed by Andrew Gallant
parent f3241fd657
commit 2708f9e81d
2 changed files with 9 additions and 3 deletions

View File

@@ -11,6 +11,8 @@ Unreleased changes. Release notes have not yet been written.
Feature enhancements:
* Added or improved file type filtering for Elixir, Fuchsia, Gentoo, GraphQL, USD, V
* [FEATURE #2195](https://github.com/BurntSushi/ripgrep/issues/2195):
When `extra-verbose` mode is enabled in zsh, show extra file type info.
* [FEATURE #2409](https://github.com/BurntSushi/ripgrep/pull/2409):
Added installation instructions for `winget`.