Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

insert-last-word/copy-prev-word/... question



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@xxxxxxxxxxx
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20



Messages sorted by: Reverse Date, Date, Thread, Author