From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4991 invoked from network); 20 Jan 2005 18:21:26 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Jan 2005 18:21:26 -0000 Received: (qmail 16658 invoked from network); 20 Jan 2005 18:21:19 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Jan 2005 18:21:19 -0000 Received: (qmail 13327 invoked by alias); 20 Jan 2005 18:21:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8404 Received: (qmail 13317 invoked from network); 20 Jan 2005 18:21:12 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Jan 2005 18:21:12 -0000 Received: (qmail 15635 invoked from network); 20 Jan 2005 18:20:36 -0000 Received: from unknown (HELO pepper.fruitcom.com) (213.201.177.249) by a.mx.sunsite.dk with SMTP; 20 Jan 2005 18:20:31 -0000 Received: from localhost (pepper [127.0.0.1]) by pepper.fruitcom.com (Postfix) with ESMTP id CD0956A01A; Thu, 20 Jan 2005 19:20:30 +0100 (CET) Received: from pepper.fruitcom.com ([127.0.0.1]) by localhost (pepper [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27057-01; Thu, 20 Jan 2005 19:20:25 +0100 (CET) Received: by pepper.fruitcom.com (Postfix, from userid 1000) id 474A469F52; Thu, 20 Jan 2005 19:20:25 +0100 (CET) Date: Thu, 20 Jan 2005 19:20:25 +0100 From: Eric Smith To: zsh-users@sunsite.dk Subject: completion function with compadd Message-ID: <20050120182025.GA26932@fruitcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian os) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Hi zsh-list I use #compdef and compadd in a site_function to do completion based on words in a file. But actually the completion is on the #lines# in the file you give as an argument to compadd. Is it possible to complete on words within that file. The example I am looking for is my mutt aliases file where I want to go: mutt a and get mutt alice@inwonderland.com and not mutt alias aw "Alice in Wonderland" thanks guys -- Eric Smith