From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6600 invoked from network); 14 Jun 2009 16:04:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 14 Jun 2009 16:04:22 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 89010 invoked from network); 14 Jun 2009 16:04:03 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Jun 2009 16:04:03 -0000 Received: (qmail 17647 invoked by alias); 14 Jun 2009 16:03:32 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14195 Received: (qmail 17634 invoked from network); 14 Jun 2009 16:03:31 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 14 Jun 2009 16:03:31 -0000 Received: from vms173001pub.verizon.net (vms173001pub.verizon.net [206.46.173.1]) by bifrost.dotsrc.org (Postfix) with ESMTP id 19EFF801E289 for ; Sun, 14 Jun 2009 18:03:27 +0200 (CEST) Received: from torch.brasslantern.com ([96.238.219.58]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KL8002FWKLP99O1@vms173001.mailsrvcs.net> for zsh-users@sunsite.dk; Sun, 14 Jun 2009 11:03:26 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id n5EG3O6C028357 for ; Sun, 14 Jun 2009 09:03:25 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id n5EG3OQe028356 for zsh-users@sunsite.dk; Sun, 14 Jun 2009 09:03:24 -0700 From: Bart Schaefer Message-id: <090614090324.ZM28355@torch.brasslantern.com> Date: Sun, 14 Jun 2009 09:03:24 -0700 In-reply-to: <20090614072632.GA18736@trustfood.org> Comments: In reply to Eric Smith "do not add a space after completion" (Jun 14, 9:26am) References: <20090614072632.GA18736@trustfood.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@sunsite.dk Subject: Re: do not add a space after completion MIME-version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.94.2/9465/Sun Jun 14 06:15:35 2009 on bifrost X-Virus-Status: Clean On Jun 14, 9:26am, Eric Smith wrote: } } I have a completion function that when executed should supply } no extra space after the option is given (on pressing ). } } Ideally it should append an underscore instead. When calling compadd, pass the -S option and possibly the -r option. There is a partial example under the -r option description in the manual. For your specific case, probably you want: compadd -S _ -r '_ \t\n' ... (replacing "..." with other options and potential matches, etc.)