From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17078 invoked from network); 4 Nov 2005 13:12:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Nov 2005 13:12:53 -0000 Received: (qmail 92208 invoked from network); 4 Nov 2005 13:12:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Nov 2005 13:12:47 -0000 Received: (qmail 8154 invoked by alias); 4 Nov 2005 13:12:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9625 Received: (qmail 8143 invoked from network); 4 Nov 2005 13:12:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Nov 2005 13:12:39 -0000 Received: (qmail 91097 invoked from network); 4 Nov 2005 13:12:39 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 4 Nov 2005 13:12:38 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EY1MN-00060n-QX for zsh-users@sunsite.dk; Fri, 04 Nov 2005 14:11:59 +0100 Received: from 212.84.119.241 ([212.84.119.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Nov 2005 14:11:59 +0100 Received: from david by 212.84.119.241 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Nov 2005 14:11:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: Global History Substitution Date: Fri, 04 Nov 2005 13:12:46 +0000 Message-ID: <6gnmm15100fh68huv8aomrd48h00k6mbai@4ax.com> References: <20051103190747.GA16897@namib.cs.utk.edu> <20051104110932.612805c7.pws@csr.com> <20051104113038.7f3c8dcd.pws@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 212.84.119.241 X-Newsreader: Forte Free Agent 2.0/32.652 Sender: news X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_BY_IP, RCVD_NUMERIC_HELO autolearn=no version=3.0.4 On Fri, 4 Nov 2005 11:30:38 +0000, wrote: >Peter Stephenson wrote: >> It turns out that fixing the code to use :g like a qualifier isn't that >> difficult, however... that's ^b^beta^:g, since if the colon is missing the >> g is treated like ordinary text. > >One subtlety is that we should ensure that > > !!:gs/foo/bar/:gs/this/that/ > >works as it always did, i.e. the g goes with the following s in both >cases. I can fix that. > >It does mean > > !!:s/foo/bar/:gs/this/that/ > >will change meaning, associating the g with the preceeding substitution >and then not treating the rest as text. This might make the proposal >less than usable. > >Using an uncoloned g isn't really a good idea since history always >treats trailing text as command line argument and I wouldn't want to change >that. > >Hmm, how about > > !!:s/foo/bar/:G > >or > > ^foo^bar^:G Yes Please! -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/