From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23012 invoked from network); 24 Jun 2006 20:57:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 24 Jun 2006 20:57:50 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 13235 invoked from network); 24 Jun 2006 20:57:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 24 Jun 2006 20:57:41 -0000 Received: (qmail 20181 invoked by alias); 24 Jun 2006 20:57:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10428 Received: (qmail 20171 invoked from network); 24 Jun 2006 20:57:33 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 24 Jun 2006 20:57:33 -0000 Received: (qmail 12164 invoked from network); 24 Jun 2006 20:57:33 -0000 Received: from kira2.akte.de (82.165.28.56) by a.mx.sunsite.dk with SMTP; 24 Jun 2006 20:57:31 -0000 Received: (root@kira2.akte.de) by kira2.akte.de id ; Sat, 24 Jun 2006 22:57:22 +0200 KRecCount: 1 KInfo: virscan ok KInfo: !spam auth Received: from condor.int.spiegl.de (p54977ABC.dip.t-dialin.net [84.151.122.188]) by kira2.akte.de via kasmail (2.9) id <1FuFBo-29W-0-kira2>; Sat, 24 Jun 2006 20:57:12 GMT Received: from condor.int.spiegl.de (spiegl@localhost [127.0.0.1]) by condor.int.spiegl.de (8.13.7/8.13.7/Debian-2) with ESMTP id k5OKvBrg003687 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 24 Jun 2006 22:57:11 +0200 Received: (from spiegl@localhost) by condor.int.spiegl.de (8.13.7/8.13.7/Submit) id k5OKvBS7003683 for zsh-users@sunsite.dk; Sat, 24 Jun 2006 22:57:11 +0200 X-Authentication-Warning: condor.int.spiegl.de: spiegl set sender to zsh.Andy@spiegl.de using -f Date: Sat, 24 Jun 2006 22:57:11 +0200 From: Andy Spiegl To: zsh-users@sunsite.dk Subject: Re: howto expand all possible completions? Message-ID: <20060624205711.GA29371@spiegl.de> Mail-Followup-To: zsh-users@sunsite.dk References: <20060623232938.GB30718@spiegl.de> <060623201956.ZM6283@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <060623201956.ZM6283@torch.brasslantern.com> X-PGP-GPG-Keys: mail -s "send pgp" auto@spiegl.de X-Fingerprint: Key-ID C2CB30F0: 9051 50B9 13B0 57B9 10FD 48AC 4FA1 209B C2CB 30F0 X-Accepted-File-Formats: ASCII OpenOffice .rtf .pdf - *NO* Microsoft files please. X-why-you-shouldnt-use-MS-LookOut: http://www.jensbenecke.de/l-oe-en.php X-warum-man-MS-Outlook-vermeiden-sollte: http://www.jensbenecke.de/l-oe-de.php X-how-to-quote: http://learn.to/quote/ X-how-to-ask-questions: http://www.catb.org/~esr/faqs/smart-questions.html X-stupid-disclaimers: http://goldmark.org/jeff/stupid-disclaimers/ User-Agent: Mutt/1.5.9i Hi Bart, > } Is there something like expand-completions or similar? > > Do you already have _expand in your completers style? No, thanks for the hint! Hm, the description of the function sounds great but I don't understand how it's supposed to work. I've got TAB bound to complete-word and now use: zstyle ':completion:*' completer _expand _expand_dots _complete _match _correct _7slash but the behavior is still the same: when I press TAB I get to see all the possible completions but they don't get written to the command line. Do I need any other style definitions? > If so, my only other suggestion would be to try setopt nocaseglob. I > suspect that you have a lower-case to upper-case matcher-list style > that is producing the mixed-case completions in the second example. Correct. nocaseglob would help in this example of mine but there are many different cases where the completer shows all kinds of different types of possible completions, e.g. the "partial match" style: zstyle ':completion:*' matcher-list 'm:{A-Zöäüa-zÖÄÜ}={a-zÖÄÜA-Zöäü} m:[-_]=[-_] r:|[-./_]=** r:|=*' '+l:|=*' which gives: condor:~/pic/Nature>qiv ham - files - A-Caribbean-reef-shark-swims-over-a-coral-reef-in-the-Bahamas.jpg cham1024.jpg cyclonegraham.jpg I tried calling the _expand function manually (via Alt-x) but that just hogged the CPU so that I had to kill zsh. :-( Thanks, Andy. -- Isn't making a smoking section in a restaurant like making a peeing section in a swimming pool? (George Carlin, US comedian)