Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] enable number argument for transpose-words
- X-seq: zsh-workers 39029
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] enable number argument for transpose-words
- Date: Fri, 12 Aug 2016 10:29:18 +0100
- In-reply-to: <20160812025402.GA5319@localhost.localdomain>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <20160801103212.GA24067@localhost.localdomain> <20160812025402.GA5319@localhost.localdomain>
On Fri, 12 Aug 2016 10:54:02 +0800
Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx> wrote:
> Any suggestions to this one, please? Thanks in advance.
Thanks, I've committed that. This describes what it does.
pws
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index eaca1b3..aa219dc 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -1948,6 +1948,12 @@ to the left.
tindex(transpose-words)
item(tt(transpose-words) (tt(ESC-T ESC-t)) (unbound) (unbound))(
Exchange the current word with the one before it.
+
+With a positive numeric argument em(N), the word before the cursor is
+transposed with the following em(N) words.
+
+With a negative numeric argument em(-N), the word after the cursor
+is transposed with the preceding em(N) words.
)
tindex(vi-unindent)
item(tt(vi-unindent) (unbound) (tt(<)) (unbound))(
Messages sorted by:
Reverse Date,
Date,
Thread,
Author