zsh-users
 help / color / mirror / code / Atom feed
* copy-prev-word doesn't respect universal argument
@ 2005-11-02  3:44 Vin Shelton
  2005-11-02 11:06 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Vin Shelton @ 2005-11-02  3:44 UTC (permalink / raw)
  To: zsh-users

Why don't copy-prev-word and copy-prev-shell-word respect the
universal argument?

Given the following:

  bindkey '^XA' copy-prev-word
  echo abc def ghi <ESC>2^XA

I would expect the result to be

  echo abc def ghi def

but zle seems always to copy the most recent word, ('ghi' in this
case), yielding:

  echo abc def ghi ghi

no matter what the prefix arg is.  I'm surprised I'm the first person
to request this.  Is there an alternate way to copy an arbitrary word
from earlier in the same command, or is the !#:<n> syntax sufficient
for most people?

Thanks,
  Vin


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-03  3:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-02  3:44 copy-prev-word doesn't respect universal argument Vin Shelton
2005-11-02 11:06 ` Peter Stephenson
2005-11-03  3:26   ` Vin Shelton

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).