From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4048 invoked from network); 5 Jan 2004 06:20:38 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 5 Jan 2004 06:20:38 -0000 Received: (qmail 17791 invoked by alias); 5 Jan 2004 06:20:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6974 Received: (qmail 17723 invoked from network); 5 Jan 2004 06:20:15 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 5 Jan 2004 06:20:15 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.11.8.53] by sunsite.dk (MessageWall 1.0.8) with SMTP; 5 Jan 2004 6:20:14 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i056KDi32464 for zsh-users@sunsite.dk; Sun, 4 Jan 2004 22:20:13 -0800 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1040105062012.ZM32463@candle.brasslantern.com> Date: Mon, 5 Jan 2004 06:20:12 +0000 In-Reply-To: <20040104220708.GB27407@fruitcom.com> Comments: In reply to Eric Smith "How do I complete from words in a file?" (Jan 4, 11:07pm) References: <20040104220708.GB27407@fruitcom.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: How do I complete from words in a file? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 4, 11:07pm, Eric Smith wrote: } } For example I have keys in the form } "_what_ever_" in certain files and want to type } on the command line: } _wh *Where* on the command line? As the command name? As an argument of a particular command? And, are you using compctl or compsys (compinit)? } and this should give me all the words commencing } with `_wh' in certain files. I can tell you that you need to create a completion widget and have it execute the command compadd ${(f)"$(