zsh-users
 help / color / mirror / code / Atom feed
From: poeml@cmdline.net
To: zsh-users@sunsite.dk
Subject: Re: insert-last-word/copy-prev-word/... question
Date: Wed, 6 Mar 2002 11:22:57 +0100	[thread overview]
Message-ID: <20020306112257.A16104@cmdline.net> (raw)
In-Reply-To: <20020301153313.A8129@lifebits.de>; from dominik.vogt@gmx.de on Fri, Mar 01, 2002 at 03:33:13 +0100

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.


  reply	other threads:[~2002-03-06 10:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-01 14:33 Dominik Vogt
2002-03-06 10:22 ` poeml [this message]
2002-03-06 10:57   ` Dominik Vogt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020306112257.A16104@cmdline.net \
    --to=poeml@cmdline.net \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).