From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20812 invoked from network); 4 Mar 2002 10:09:29 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Mar 2002 10:09:29 -0000 Received: (qmail 2634 invoked by alias); 4 Mar 2002 10:09:11 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4733 Received: (qmail 2622 invoked from network); 4 Mar 2002 10:09:10 -0000 Resent-Message-Id: <200203041008.g24A84719820@erdbeere.lifebits.local> X-Authentication-Warning: erdbeere.lifebits.local: luthien set sender to luthien@lifebits.de using -f Date: Fri, 1 Mar 2002 15:33:13 +0100 From: Dominik Vogt To: zsh-users@sunsite.dk Subject: insert-last-word/copy-prev-word/... question Message-ID: <20020301153313.A8129@lifebits.de> Reply-To: dominik.vogt@gmx.de Mail-Followup-To: zsh-users@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.22.1i Resent-From: luthien@lifebits.de Resent-Date: Mon, 4 Mar 2002 11:08:04 +0100 Resent-To: zsh-users@sunsite.dk X-Virus-Scanned: by AMaViS perl-11 X-Sender: 520008918237-0001@t-dialin.net 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? Bye Dominik ^_^ ^_^ -- Dominik Vogt, email: d.vogt@lifebits.de LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20