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 40016
- 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 09:35:51 +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=jnRKb30tNIl8SnPudxRMlyzVDRk=; b=k7Tgslq/C6M8ooEq66Pzx CtB3sjvvaSLE1OkXxPA2QSy0xJrkkOO70Wfge+ixWokrhEyI2ZsqaGNnYUYdLvy7 amELusco11fokXHsb1tW/kPzZr/+4bZWXTLwPalokuIZt+Ze8wFCYak0IdRT5+bT Si+dCpOnAP9+MzUqz+oB3A=
- 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=jnRKb30tNIl8SnPudxRMlyzVDRk=; b=YJlbYcFUrImSINM8vXY9 +V+c8/SDvN+VqudnP38+tacnbCEvYPY9GxQTQKuDrb2Up/GzPZzqugNsPIrXE3M8 r8n88cEYq8KY/+MTVmI87NiCn8TXllYK/4RSNVlNHsujgMMNVBWxDbXF5iu53nhK oxJNQavchehPaPu8y3UZAe4=
- In-reply-to: <20161122183137.uiqjriicn5g4fjwd@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>
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?
> + /$'depends\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
> + /$'rdepends\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
> + /$'policy\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
According to your reference, source|build-dep|showsrc|policy should
complete both binary package names and source package names. It would
be nice to add support for the latter
Thanks for the patch. Will commit once the show/showsrc issue is
clarified.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author