about summary refs log tree commit diff
path: root/Doc/Zsh/contrib.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-07-06 17:25:53 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-07-06 17:25:53 +0000
commitfe06b7a73db3af0a4ba6988c5c467a90d36a2a76 (patch)
treea16639e189c22b372c7f5741e22273a2b310acfe /Doc/Zsh/contrib.yo
parent13484584472e82505c9decd686bb67771af508c9 (diff)
downloadzsh-fe06b7a73db3af0a4ba6988c5c467a90d36a2a76.tar.gz
zsh-fe06b7a73db3af0a4ba6988c5c467a90d36a2a76.tar.xz
zsh-fe06b7a73db3af0a4ba6988c5c467a90d36a2a76.zip
15279: ${(S)...%%...} etc. doc; 15288: bash word functions + doc
Diffstat (limited to 'Doc/Zsh/contrib.yo')
-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 cff9f2d39..9919117e5 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -362,6 +362,23 @@ followed by an appropriate tt(bindkey) command to associate the function
 with a key sequence.  Suggested bindings are described below.
 
 startitem()
+tindex(bash-forward-word)
+tindex(bash-backward-word)
+tindex(bash-kill-word)
+tindex(bash-backward-kill-word)
+xitem(tt(bash-forward-word), tt(bash-backward-word))
+item(tt(bash-kill-word), tt(bash-backward-kill-word))(
+These work similarly to the corresponding builtin zle functions without the
+`tt(bash-)' prefix, but a word is considered to consist of alphanumeric
+characters only.  If you wish to replace your existing bindings with these
+four widgets, the following is sufficient:
+
+example(for widget in kill-word backward-kill-word \ 
+forward-word backward-word; do 
+  autoload bash-$widget 
+  zle -N $widget bash-$widget
+done)
+)
 tindex(cycle-completion-positions)
 item(tt(cycle-completion-positions))(
 After inserting an unambiguous string into the command line, the new