Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] _add-zle-hook-widget: New completion.



On Jul 17, 12:21pm, Bart Schaefer wrote:
}
} _add-zle-hook-widget_classes() {
}   local -a hooktypes=( ${^${=${(f)"$( add-zle-hook-widget -h )"}[3]}} )
}   compadd "$@" -M 'L:|zle-=' -a hooktypes
} }

Er, never mind the ${^...} , that was before I thought of -M 'L:...'

So just

_add-zle-hook-widget_classes() {
  local -a hooktypes=( ${=${(f)"$( add-zle-hook-widget -h )"}[3]} )
  compadd "$@" -M 'L:|zle-=' -a hooktypes
}



Messages sorted by: Reverse Date, Date, Thread, Author