about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-04-19 14:16:22 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-04-19 14:16:22 +0000
commitc6dfb2999d51be6e71176358a2e14360fe6e6ee6 (patch)
treee781f3f174a3a2c7978d3b2ad89589e8439aec3e /Doc/Zsh
parent0d101890d0faeaefa863099042e3510f5021fbc3 (diff)
downloadzsh-c6dfb2999d51be6e71176358a2e14360fe6e6ee6.tar.gz
zsh-c6dfb2999d51be6e71176358a2e14360fe6e6ee6.tar.xz
zsh-c6dfb2999d51be6e71176358a2e14360fe6e6ee6.zip
users/11419: zle copy-region-as-kill <string>
adds text to the kill ring
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/zle.yo14
1 files changed, 11 insertions, 3 deletions
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index d600a49eb..cafb96e90 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -663,7 +663,10 @@ vindex(CUTBUFFER)
 item(tt(CUTBUFFER) (scalar))(
 The last item to be cut using one of the `tt(kill-)' commands; the
 string which the next yank would insert in the line.  Later entries in
-the kill ring are in the array tt(killring).
+the kill ring are in the array tt(killring).  Note that the
+command `tt(zle copy-region-as-kill) var(string)' can be used to
+set the text of the cut buffer from a shell function and cycle the kill
+ring in the same way as interactively killing text.
 )
 vindex(HISTNO)
 item(tt(HISTNO) (integer))(
@@ -1296,6 +1299,11 @@ Kill the current line and enter insert mode.
 tindex(copy-region-as-kill)
 item(tt(copy-region-as-kill) (ESC-W ESC-w) (unbound) (unbound))(
 Copy the area from the cursor to the mark to the kill buffer.
+
+If called from a ZLE widget function in the form `tt(zle
+copy-region-as-kill) var(string)' then var(string) will be taken as the
+text to copy to the kill buffer.  The cursor, the mark and the text on the
+command line are not used in this case.
 )
 tindex(copy-prev-word)
 item(tt(copy-prev-word) (ESC-^_) (unbound) (unbound))(
@@ -1498,8 +1506,8 @@ Insert the contents of the kill buffer at the cursor position.
 )
 tindex(yank-pop)
 item(tt(yank-pop) (ESC-y) (unbound) (unbound))(
-Remove the text just yanked, rotate the kill-ring,
-and yank the new top.  Only works following
+Remove the text just yanked, rotate the kill-ring (the history of
+previously killed text) and yank the new top.  Only works following
 tt(yank) or tt(yank-pop).
 )
 tindex(vi-yank)