zsh-workers
 help / color / mirror / code / Atom feed
From: "Richard Hartmann" <richih.mailinglist@gmail.com>
To: "Zsh hackers list" <zsh-workers@sunsite.dk>
Subject: RFC: changing apt-cache completion
Date: Sun, 17 Aug 2008 00:53:40 +0200	[thread overview]
Message-ID: <2d460de70808161553y2c60ccf6oa80a6d8e527fbdeb@mail.gmail.com> (raw)

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


                 reply	other threads:[~2008-08-16 22:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=2d460de70808161553y2c60ccf6oa80a6d8e527fbdeb@mail.gmail.com \
    --to=richih.mailinglist@gmail.com \
    --cc=zsh-workers@sunsite.dk \
    /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).