Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RFC: changing apt-cache completion



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