about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-06-16 21:50:39 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-06-16 21:50:39 +0000
commit091cbd9d5864173433c6937dd1dcc7742081ae13 (patch)
tree31bbb9e64af1d1c14031fd8840708cd6648bd49b /Doc
parent14dde084755a8b15004d59bb6be5cc7a3726a8bf (diff)
downloadzsh-091cbd9d5864173433c6937dd1dcc7742081ae13.tar.gz
zsh-091cbd9d5864173433c6937dd1dcc7742081ae13.tar.xz
zsh-091cbd9d5864173433c6937dd1dcc7742081ae13.zip
28042: transpose-lines widget
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/contrib.yo17
1 files changed, 17 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index c512f89d9..ac0d32d19 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -2073,6 +2073,23 @@ a true value, the search continues upward through the history.  When
 tt(auto-previous) is unset or false (the default), the widget must be
 invoked repeatedly in order to search earlier history lines.
 )
+tindex(transpose-lines)
+item(tt(transpose-lines))(
+Only useful with a multi-line editing buffer; the lines here are
+lines within the current on-screen buffer, not history lines.
+The effect is similar to the function of the same name in Emacs.
+
+Transpose the current line with the previous line and move the cursor
+to the start of the next line.  Repeating this (which can be done by
+providing a positive numeric prefix argument) has the effect of moving
+the line above the cursor down by a number of lines.
+
+With a negative numeric prefix argument, requires two lines above the
+cursor.  These two lines are transposed and the cursor moved to the
+start of the previous line.  Using a numeric prefix less than -1
+has the effect of moving the line above the cursor up by minus that
+number of lines.
+)
 tindex(which-command)
 item(tt(which-command))(
 This function is a drop-in replacement for the builtin widget