3 local -a completions_with_descriptions
5 response
=("${(@f)$( env COMP_WORDS="${words[*]}" \
6 COMP_CWORD
=$
((CURRENT-1
)) \
7 _HATCH_COMPLETE
="complete_zsh" \
10 for key descr in ${(kv)response}; do
11 if [[ "$descr" == "_
" ]]; then
14 completions_with_descriptions+=("$key":"$descr")
18 if [ -n "$completions_with_descriptions" ]; then
19 _describe -V unsorted completions_with_descriptions -U -Q
22 if [ -n "$completions" ]; then
23 compadd -U -V unsorted -Q -a completions
25 compstate[insert]="automenu
"
28 compdef _hatch_completion hatch;