From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5865 invoked from network); 21 Jun 2009 10:33:38 -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.6 required=5.0 tests=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; 21 Jun 2009 10:33:38 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 47726 invoked from network); 21 Jun 2009 10:24:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Jun 2009 10:24:46 -0000 Received: (qmail 10930 invoked by alias); 21 Jun 2009 10:24:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14200 Received: (qmail 10909 invoked from network); 21 Jun 2009 10:24:11 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 21 Jun 2009 10:24:11 -0000 Received: from pepper.fruitcom.com (pepper.fruitcom.com [194.109.117.112]) by bifrost.dotsrc.org (Postfix) with ESMTP id EFCAF80307FA for ; Sun, 21 Jun 2009 12:23:56 +0200 (CEST) Received: by pepper.fruitcom.com (Postfix, from userid 1000) id 9685729090B; Sun, 21 Jun 2009 12:23:56 +0200 (CEST) Date: Sun, 21 Jun 2009 12:23:56 +0200 From: Eric Smith To: zsh-users@sunsite.dk Subject: Re: do not add a space after completion Message-ID: <20090621102356.GO4907@trustfood.org> Mail-Followup-To: zsh-users@sunsite.dk References: <20090614072632.GA18736@trustfood.org> <090614090324.ZM28355@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <090614090324.ZM28355@torch.brasslantern.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Virus-Scanned: ClamAV 0.94.2/9492/Sat Jun 20 22:52:40 2009 on bifrost X-Virus-Status: Clean Brilliant, thanks a lot Bart -- - Eric Smith Bart Schaefer said: > 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.)