From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19269 invoked from network); 15 Aug 2006 08:01:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Aug 2006 08:01:44 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 70446 invoked from network); 15 Aug 2006 08:01:35 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Aug 2006 08:01:35 -0000 Received: (qmail 20680 invoked by alias); 15 Aug 2006 08:01:27 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10608 Received: (qmail 20670 invoked from network); 15 Aug 2006 08:01:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Aug 2006 08:01:25 -0000 Received: (qmail 69350 invoked from network); 15 Aug 2006 08:01:25 -0000 Received: from web8407.mail.in.yahoo.com (202.43.219.155) by a.mx.sunsite.dk with SMTP; 15 Aug 2006 08:01:23 -0000 Received: (qmail 41959 invoked by uid 60001); 15 Aug 2006 08:01:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=hgVDZjswqWenDBxmWQAwOpRYOWnalYDsh7DjeJaxjPa00QGmTT1jhdenWOWMvi4waQE8ApaRAhfBj23jlxDwK0z5mU6Ix96zHVwluawjqZQu3xR0PHy/nZgSrSxwSan5k1OamT7nq4nt/pjbmq82eYrLb884ZyxHQOvHosNup14= ; Message-ID: <20060815080121.41957.qmail@web8407.mail.in.yahoo.com> Received: from [59.144.62.34] by web8407.mail.in.yahoo.com via HTTP; Tue, 15 Aug 2006 01:01:21 PDT Date: Tue, 15 Aug 2006 01:01:21 -0700 (PDT) From: sac Subject: Re: Substring completion To: zsh-users@sunsite.dk In-Reply-To: <44E18BCA0200001A00006637@zh02.cbintra.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, Actually the following does the job. zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z} m:{a-zA-Z}={A-Za-z} r:|[._-]=** r:|=** l:|=*' 'm:{a-z}={A-Z}' The above line is generated by the program compinstall. For me its more of a pain than pleasure. Anyway hope it helps you. Regards, sac. --- Mika Borner wrote: > Hi > > I just started to use zsh, so this might sound like > a newbie question. > I searched with google for a solution, but could > not find anything. > Here's my problem: > > I'm trying to write a completion. All the possible > arguments are in a > predefined array. Because the elements are quite > complex, I want to have > a completion that works by giving a substring of an > element. All the > completions that I've found so far (e.g. file > completion), demand that > the completion starts from the first letter. > > Is there a utility function to acomplish this? The > man pages are > "quite" complex, so I might have overlooked > something... > > //Mika > > # mv Disclaimer.txt /dev/null > > > ------------------------------------------------------------------------- > This message is intended for the addressee only and > may > contain confidential or privileged information. If > you > are not the intended receiver, any disclosure, > copying > to any person or any action taken or omitted to be > taken > in reliance on this e-mail, is prohibited and may be > un- > lawful. You must therefore delete this e-mail. > Internet communications may not be secure or > error-free > and may contain viruses. They may be subject to > possible > data corruption, accidental or on purpose. This > e-mail is > not and should not be construed as an offer or the > solicitation of an offer to purchase or subscribe or > sell > or redeem any investments. > ------------------------------------------------------------------------- > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com