From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6882 invoked from network); 14 Sep 2005 19:47:37 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Sep 2005 19:47:37 -0000 Received: (qmail 25622 invoked from network); 14 Sep 2005 19:47:29 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Sep 2005 19:47:29 -0000 Received: (qmail 19699 invoked by alias); 14 Sep 2005 19:47:22 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9417 Received: (qmail 19689 invoked from network); 14 Sep 2005 19:47:22 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 14 Sep 2005 19:47:22 -0000 Received: (qmail 24597 invoked from network); 14 Sep 2005 19:47:22 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 14 Sep 2005 19:47:15 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EFdBm-0005Y3-Ut for zsh-users@sunsite.dk; Wed, 14 Sep 2005 21:45:02 +0200 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 ; Wed, 14 Sep 2005 21:45:02 +0200 Received: from david by 212.84.119.241 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Sep 2005 21:45:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: ^test^main line editting command Date: Wed, 14 Sep 2005 20:42:19 +0100 Message-ID: References: <3060c239050913053859d8d55b@mail.gmail.com> <1050914155214.ZM27194@candle.brasslantern.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.5 required=5.0 tests=AWL,BAYES_00,RCVD_BY_IP, RCVD_NUMERIC_HELO autolearn=no version=3.0.4 On Wed, 14 Sep 2005 15:52:14 +0000, wrote: >On Sep 14, 10:27am, zzapper wrote: >} >} I hope I know most of the bang tricks !! etc. >} But I was just hoping ,zsh being so twisted ,that there might just be >} some clever tricks to the >} ^str1^str2 mechanism > >There's really only one, but it's a pretty comprehensive trick. > >When you write > ^str1^st2 >zsh converts it internally to > !!:s^str1^str2 >which means that you can add a third carat and go on with your command >line, including appending a colon and then more history modifiers. >E.g. > ^str1^str2^:u:p > >(I'm not sure what you were hinting at with the "some kind of memory" >question.) Some kind of regexp memory I suppose -- zzapper Success for Techies and Vim,Zsh tips http://SuccessTheory.com/