zsh-workers
 help / color / mirror / code / Atom feed
* RFC: changing apt-cache completion
@ 2008-08-16 22:53 Richard Hartmann
  0 siblings, 0 replies; only message in thread
From: Richard Hartmann @ 2008-08-16 22:53 UTC (permalink / raw)
  To: Zsh hackers list

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-16 22:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-16 22:53 RFC: changing apt-cache completion Richard Hartmann

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).