From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Laurent Arnoud <laurent@spkdev.net>
Cc: zsh-workers@zsh.org
Subject: Re: [PATCH] Add missing commands to Debian apt completion
Date: Fri, 25 Nov 2016 09:35:51 +0000 [thread overview]
Message-ID: <20161125093551.GA23516@fujitsu.shahaf.local2> (raw)
In-Reply-To: <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
next prev parent reply other threads:[~2016-11-25 9:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-22 18:31 Laurent Arnoud
2016-11-25 9:35 ` Daniel Shahaf [this message]
2016-11-25 16:19 ` Laurent Arnoud
2016-11-25 16:59 ` Daniel Shahaf
2016-11-25 16:23 ` Laurent Arnoud
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161125093551.GA23516@fujitsu.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--cc=laurent@spkdev.net \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).