Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _add-zle-hook-widget: New completion.
- X-seq: zsh-workers 38875
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] _add-zle-hook-widget: New completion.
- Date: Sun, 17 Jul 2016 14:57:18 -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=v/XU4e0opoK7FqyHCqXB4iM61/qFHgmupL4Fr3lzR+Y=; b=BQ/BFbShmP8E0cJYtuusTWUV94u2XppAY3VxNgLPohvT21FWJOj9lmurBRv8Rkn0xF IfXQerDHeDV8y+833HQPniKU5fzY+/cfzpUi2YCe7I0TaJjfApN+IgXb4wOCtCwalTU0 IXrPYK/LuDoHQvDLaK35+/fOSvG/Rer1jFnbNW44oCVAYAMgQgAYxfqMuNHYT4+6uuKR ayCG4oYo7Rq5IXruFYaK22Sr5vOHMJibjhG6ukuFwYSOKhcerSC962iJ6ylW9784oyLy 0+P0WKy9gTMS6tMAkaK8PINr9xQpO32Hdenq7WX1mGleRFM49TpeyYqcGTTDqYeHgWoP WmDw==
- In-reply-to: <1468767614-9635-1-git-send-email-danielsh@tarsus.local2>
- 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>
One other remark:
On Jul 17, 3:00pm, Daniel Shahaf wrote:
}
} + _wanted widgets expl widget compadd -M 'r:|-=* r:|=*' -k widgets && ret=0 && return 0
Better might be
local -a user_widgets=( ${(k)widgets[(R)user:*]} )
_wanted widgets expl widget compadd -M 'r:|-=* r:|=*' -a user_widgets && ret=0 && return 0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author