Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _add-zle-hook-widget: New completion.
- X-seq: zsh-workers 38874
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] _add-zle-hook-widget: New completion.
- Date: Sun, 17 Jul 2016 13:40:41 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=IMwYpN7fKlNTc+sFttIwKDiTFOhoM1Ljy1hYvpft624=; b=Vd6+2nMHpGDGySEW4kIsbQzvSSVjzTvNgqcs3VpTU5NZVGxRM/cyzHMBhXGejfxTPS iwCNH7TpU2sB+Ti1chcwbvsRqY4JUHduaGDkz6L2cJT340AP+ZHKj1TLbV3QlyScJhWT gbkHdq+2jzfEriuqkGyxA22cQRgttiq4PNsjp9TCp18iTaFXgx17CZqD2dpLGKBpnNls KzY67Ci2GWKpOBorGFmQxgN+n3QSzDFkN6tHH1g6R2EKeqBAstSWKbznj9ZHEQruDIDU NLWPPh35KuZZB+DdT61vEJeqrOTY81QNxUMoKg9/K2r3rmbMJiGGYwK3SlkC5I027lB0 yS2Q==
- In-reply-to: <160717122119.ZM1765@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <160716185103.ZM5258@torch.brasslantern.com> <1468767614-9635-1-git-send-email-danielsh@tarsus.local2> <160717122119.ZM1765@torch.brasslantern.com>
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