Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Add missing commands to Debian apt completion
- X-seq: zsh-workers 40019
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Laurent Arnoud <laurent@xxxxxxxxxx>
- Subject: Re: [PATCH] Add missing commands to Debian apt completion
- Date: Fri, 25 Nov 2016 16:59:13 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= mesmtp; bh=Ykwymam5cVAbN9MW3q1nfTqbjiY=; b=Metr/BTlNdkkitVJWtG1/ PdX1c0yjADZzanuZcSUsmKKQlaMMmWnY/m2TjkmcarWE85Fk2vrnuYqiZTNCocvi MaP5vR5Mi1kJ0YpTLKCd5AGPUewB4k6DlxY6YOWpU5Ql9WiXl5e964Ik265VTEhx StQwkmBrjfYkwTz6OudFC4=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=Ykwymam5cVAbN9MW3q1nfTqbjiY=; b=KtfbjSRI22O9AnCwoDus DPSZg2lqCUFpWcQ82OAQzaRQjXmFpcia9Jz6P2to9JDVYzKwzG+QhQwQElqv8gdY qRHYwZZO8ny4EBsycKCvulBYS0AciPImsekm9mfyt5bXvO21Avescy9AB6bAqRW+ afxkTD7mqeD9lnaeNZO1wVo=
- In-reply-to: <20161125161905.6jqtkq2arphofrat@spk-laptop>
- 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: <20161122183137.uiqjriicn5g4fjwd@spk-laptop> <20161125093551.GA23516@fujitsu.shahaf.local2> <20161125161905.6jqtkq2arphofrat@spk-laptop>
Laurent Arnoud wrote on Fri, Nov 25, 2016 at 17:19:05 +0100:
> On Fri, Nov 25, 2016 at 09:35:51AM +0000, Daniel Shahaf wrote:
> > Laurent Arnoud wrote on Tue, Nov 22, 2016 at 19:31:37 +0100:
> > > +++ b/Completion/Debian/Command/_apt
> > > @@ -402,17 +402,29 @@ _apt-cmd () {
> > > /$'show\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
> > > + /$'showsrc\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
> >
> > I had to move the 'showsrc' line to above the 'show' line for «apt
> > showsrc <TAB>» to work. Is this expected, or a bug in _apt_arguments
> > or _regex_arguments?
>
> Yes you are right, I'm not sure about the bug but it is done like that in
> `_apt-cache` function. I will just do as you did since I'm not an expert with
> this.
Actually, I looked again and a «\|» is missing from the 'list' and
'show' lines. I'll push your new patch with this modification. Thanks
for the patch!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author