From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18410 invoked from network); 15 Aug 2006 06:56:07 -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 06:56:07 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 23804 invoked from network); 15 Aug 2006 06:55:58 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Aug 2006 06:55:58 -0000 Received: (qmail 14865 invoked by alias); 15 Aug 2006 06:55:50 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10607 Received: (qmail 14855 invoked from network); 15 Aug 2006 06:55:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Aug 2006 06:55:50 -0000 Received: (qmail 22770 invoked from network); 15 Aug 2006 06:55:49 -0000 Received: from mail-gw13.credit-suisse.com (198.240.213.22) by a.mx.sunsite.dk with SMTP; 15 Aug 2006 06:55:49 -0000 Received: by mail-gw13.credit-suisse.com; Tue, 15 Aug 2006 08:55:25 +0200 (MEST) Message-Id: <44E18BCA0200001A00006637@zh02.cbintra.net> X-Mailer: Novell GroupWise Internet Agent 7.0.1 Date: Tue, 15 Aug 2006 08:54:34 +0200 From: "Mika Borner" To: Subject: Substring completion Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Authority-Analysis: AcmnmcIAAQALAAA= X-SPAM: 0.00% X-Loop-Check: mail-gw13.credit-suisse.com 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. -------------------------------------------------------------------------