From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17484 invoked from network); 16 Jul 2005 15:09:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Jul 2005 15:09:50 -0000 Received: (qmail 17940 invoked from network); 16 Jul 2005 15:09:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Jul 2005 15:09:42 -0000 Received: (qmail 20412 invoked by alias); 16 Jul 2005 15:09:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21480 Received: (qmail 20399 invoked from network); 16 Jul 2005 15:09:38 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 16 Jul 2005 15:09:38 -0000 Received: (qmail 17624 invoked from network); 16 Jul 2005 15:09:38 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 16 Jul 2005 15:09:33 -0000 Received: from candle.brasslantern.com ([71.116.88.149]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IJQ00L7Q7FU3K73@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 16 Jul 2005 10:09:31 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j6GF9TLw030939; Sat, 16 Jul 2005 08:09:29 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j6GF9TMa030938; Sat, 16 Jul 2005 08:09:29 -0700 Date: Sat, 16 Jul 2005 15:09:28 +0000 From: Bart Schaefer Subject: Re: jumping ampersands? In-reply-to: <17113.6118.560033.793675@bear.he.net> To: Eric De Mund Cc: zsh-workers@sunsite.dk Message-id: <1050716150928.ZM30937@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <17111.40096.147827.838876@bear.he.net> <1050715145404.ZM29367@candle.brasslantern.com> <17113.6118.560033.793675@bear.he.net> Comments: In reply to Eric De Mund "Re: jumping ampersands?" (Jul 16, 7:21am) 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=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Jul 16, 7:21am, Eric De Mund wrote: } Subject: Re: jumping ampersands? } } Bart Schaefer : } ] the auto-removal of the previously auto-added trailing space. } } Is this behavior option-settable? Unfortunately, it's not settable in a way that you'd find useful. You can turn off auto-removal, but that turns off auto-removal of all suffixes (including most notably slashes after directory names), not just spaces and not exclusively before semicolon/ampersand/bar, and you *can't* turn off the auto-addition of the space. The completion system supports using a shell function to decide what to remove, but its name must be explicitly passed to the compadd builtin; one function can't be applied generically to all completions. } It represents an aesthetic that I just don't share; I strongly prefer } a space character between commands and any following &'s, &&'s, and } ||'s. I share your sentiment. The only thing I can immediately suggest is that you train your fingers to type the space even if completion has already added one. Typing the space will cause the auto-added space to be removed and replaced by the one you type, so the net effect is invisible except that auto-removal will not thereafter occur.