Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RFC: changing apt-cache completion
- X-seq: zsh-workers 25466
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: RFC: changing apt-cache completion
- Date: Sun, 17 Aug 2008 00:53:40 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=GASv2aW3N9WaGbC8WdGtDRs5oEYY7/jyBvHu78RwMSs=; b=TU1afGsUPZSxXjoLY0i4DUKtwSA7XIqNAIwOcBDI9OC5FDUFK9NgITRpBojhPRx9qn ERQ+DFyejRdh9mjMHisMSKKFEzPJ/9bhVBAgG4mrXkY9PVIXslajE2C+52sy8wgM/VWS FfV8kZecngEjjMo8q+aLT5p33jxWungZVb/aE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=lWwetLmwMKW/9fJE86j0VMUUzKb/5d2ZdSbtAf7dD6WAh8nOJDv11zxYTyuDqM8a5Q nClCpnufV4ZvxjdA+VHlmXlJZhUGvBfHLmcQ+Lm8Zia94rlZMV2CTYjioLd2LbqXQYNg 2ehtqN6x4NVuOHF+RIEZ7hJGNxaSAJUzo5yBM=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Hi all,
I would like to change functions/Completion/Debian/_apt as follows:
--- /usr/share/zsh/functions/Completion/Debian/_apt 2008-07-23
05:02:12.000000000 +0200
+++ _apt 2008-08-17 00:42:36.473556967 +0200
@@ -476,7 +476,7 @@
/$'dump\0'/ \| \
/$'dumpavail\0'/ \| \
/$'unmet\0'/ \| \
- /$'search\0'/ /$'[^\0]#\0'/ ':strings:pattern:' \| \
+ /$'search\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages
"$expl_packages[@]" avail' \# \| \
/$'show\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages
"$expl_packages[@]" avail' \# \| \
/$'depends\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages
"$expl_packages[@]" avail' \# \| \
/$'rdepends\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages
"$expl_packages[@]" avail' \# \| \
Unless I am mistaken, :strings:pattern: does not help much, whereas
with the above, you can at least complete on package names that
begin with the current substring.
Thoughts?
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author