From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20841 invoked from network); 6 Mar 2002 10:24:14 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 6 Mar 2002 10:24:14 -0000 Received: (qmail 6956 invoked by alias); 6 Mar 2002 10:23:57 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4736 Received: (qmail 6939 invoked from network); 6 Mar 2002 10:23:57 -0000 Date: Wed, 6 Mar 2002 11:22:57 +0100 From: poeml@cmdline.net To: zsh-users@sunsite.dk Subject: Re: insert-last-word/copy-prev-word/... question Message-ID: <20020306112257.A16104@cmdline.net> Mail-Followup-To: zsh-users@sunsite.dk References: <20020301153313.A8129@lifebits.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.16i In-Reply-To: <20020301153313.A8129@lifebits.de>; from dominik.vogt@gmx.de on Fri, Mar 01, 2002 at 03:33:13 +0100 X-Useless-Header: If you read this, say 'honk'! On Fri, Mar 01, 2002 at 03:33:13 +0100, Dominik Vogt wrote: > Let's assume I have this in the history > > ls xxx xxx foo > ls xxx xxx bar > ls yyy zzz baz > > And I'm typing a new command line: > > $ ls first second next > ^ > cursor > > with insert-last word, I can copy "baz", "bar", "foo" to the > cursor position. With copy-prev-word I can copy "next". But I'd > like to > > - Call some function multiple times. With the first call I get > "next". WIth the second call I get "second" and with the > third call I get "first". > - The same should work on previous lines in the history: First I > call insert-last and get "baz", then I call said function and > get "zzz", then I call it again and get "yyy". > > Is that possible? How about simply prefixing insert-last with a multiplier, is that what you want (not sure if I understand correctly)? Like "meta-2 meta-." which would give you "zzz" in you example. Peter -- Thought is limitation. Free your mind.