Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: insert-last-word/copy-prev-word/... question
- X-seq: zsh-users 4736
- From: poeml@xxxxxxxxxxx
- To: zsh-users@xxxxxxxxxx
- Subject: Re: insert-last-word/copy-prev-word/... question
- Date: Wed, 6 Mar 2002 11:22:57 +0100
- In-reply-to: <20020301153313.A8129@xxxxxxxxxxx>; from dominik.vogt@xxxxxx on Fri, Mar 01, 2002 at 03:33:13 +0100
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20020301153313.A8129@xxxxxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author