From 54d5f8e3632ca3698d90662d49d1320f91827078 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 28 Jul 2016 16:12:59 +0200 Subject: 38956: factor out zle widget completion into its own function --- Completion/Zsh/Type/_widgets | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Completion/Zsh/Type/_widgets (limited to 'Completion/Zsh/Type') diff --git a/Completion/Zsh/Type/_widgets b/Completion/Zsh/Type/_widgets new file mode 100644 index 000000000..fdab2814e --- /dev/null +++ b/Completion/Zsh/Type/_widgets @@ -0,0 +1,9 @@ +#autoload + +local expl pattern + +pattern=( -g \* ) +zparseopts -D -K -E g:=pattern + +_description widgets expl widget +compadd "$@" "$expl[@]" -M 'r:|-=* r:|=*' - "${(@k)widgets[(R)${pattern[2]}]}" -- cgit 1.4.1