From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18260 invoked from network); 10 Jul 2006 23:30:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO, LONGWORDS autolearn=no version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Jul 2006 23:30:29 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 13288 invoked from network); 10 Jul 2006 23:30:21 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Jul 2006 23:30:21 -0000 Received: (qmail 7949 invoked by alias); 10 Jul 2006 23:30:13 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10508 Received: (qmail 7939 invoked from network); 10 Jul 2006 23:30:12 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Jul 2006 23:30:12 -0000 Received: (qmail 12045 invoked from network); 10 Jul 2006 23:30:12 -0000 Received: from web30715.mail.mud.yahoo.com (68.142.201.253) by a.mx.sunsite.dk with SMTP; 10 Jul 2006 23:30:11 -0000 Received: (qmail 10410 invoked by uid 60001); 10 Jul 2006 23:30:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=qg58DAZY/G/rqFfGw7R+WEildCqlLrN6LU2MOi6qk8TQoifddty22sCcgGuGf58Dw26dD9Js/2MewUOR+yd49etvYCofb//lRNbRB+DMmYATJ75fBah0rW8gnG5INtZSz7od7fggCikkHMbxKruYPwY9/hMKf/g17BRdZt/gcTc= ; Message-ID: <20060710233007.10408.qmail@web30715.mail.mud.yahoo.com> Received: from [64.207.50.22] by web30715.mail.mud.yahoo.com via HTTP; Mon, 10 Jul 2006 16:30:07 PDT Date: Mon, 10 Jul 2006 16:30:07 -0700 (PDT) From: Scott Anderson Reply-To: Scott Anderson Subject: Re: Redirection Symbol After Completion To: zsh-users@sunsite.dk In-Reply-To: <20060710141220.GA11832@namib.cs.utk.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii ----- Original Message ---- From: Chris Johnson To: zsh-users@sunsite.dk Sent: Monday, July 10, 2006 8:12:20 AM Subject: Re: Redirection Symbol After Completion Bart Schaefer sent me the following 1.9K: > } > I personally find commands easier to parse with my eye when the space > } > remains before the redirection symbol: > } > > } > cat file.txt | > } > > } > Is there any way to force this space to persist even if I type a > } > redirection operator? > > self-insert-redir() { > integer l=$#LBUFFER > zle self-insert > (( $l >= $#LBUFFER )) && LBUFFER[-1]=" $LBUFFER[-1]" > } > zle -N self-insert-redir > for op in \| \< \> \& > do bindkey "$op" self-insert-redir > done > > I like that so much I might even keep it. This is not working for me. > ls noname > cat no completes the file as expected. > cat noname Then I type "|" > cat noname cat noname|[-1] Am I missing an option? > echo $ZSH_NAME $ZSH_VERSION zsh 4.3.2 > setopt autocd autopushd nobeep nobgnice correct extendedglob extendedhistory histfindnodups histignorealldups histignoredups histnostore histsavenodups nohup incappendhistory interactive interactivecomments ksharrays kshglob monitor nonomatch numericglobsort promptsubst pushdignoredups pushdminus pushdsilent sharehistory shinstdin shwordsplit zle Thanks in advance for the help. Scott