about summary refs log tree commit diff
path: root/Doc/Zsh/contrib.yo
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-06-29 17:05:06 +0200
committerOliver Kiddle <opk@zsh.org>2016-06-29 17:05:06 +0200
commita73ae70e8217d7163aecdbdad4d8af08eced8a55 (patch)
treeada747729a411bc50f38d410f447efcac1dfd4c9 /Doc/Zsh/contrib.yo
parent5ea32ce2fcd527e9b6e6991c007d296afc5aa44d (diff)
downloadzsh-a73ae70e8217d7163aecdbdad4d8af08eced8a55.tar.gz
zsh-a73ae70e8217d7163aecdbdad4d8af08eced8a55.tar.xz
zsh-a73ae70e8217d7163aecdbdad4d8af08eced8a55.zip
38770: vi upper/lowercase widgets and shell widget example that reads a vi movement
Diffstat (limited to 'Doc/Zsh/contrib.yo')
-rw-r--r--Doc/Zsh/contrib.yo11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 53ae96dad..f1208e843 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -2968,6 +2968,17 @@ and aliases `tt(globurl)' to `tt(noglob urlglobber)'.  This function takes
 a local URL apart, attempts to pattern-match the local file portion of the
 URL path, and then puts the results back into URL format again.
 )
+tindex(vi-pipe)
+item(tt(vi-pipe))(
+This function reads a movement command from the keyboard and then
+prompts for an external command. The part of the buffer covered by
+the movement is piped to the external command and then replaced by
+the command's output. If the movement command is bound to vi-pipe,
+the current line is used.
+
+The function serves as an example for reading a vi movement command
+from within a user-defined widget.
+)
 tindex(which-command)
 item(tt(which-command))(
 This function is a drop-in replacement for the builtin widget