about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-12-12 22:53:27 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-12-12 22:53:27 +0000
commit1e212cbedcec984ce8bd6f89aa5db8e0b628435b (patch)
tree16af728e3e4b2c2a2768bee47164899ea8eca763 /Doc/Zsh
parent276fe6ef161b59a48d34324ec14ebb5076a9cefb (diff)
downloadzsh-1e212cbedcec984ce8bd6f89aa5db8e0b628435b.tar.gz
zsh-1e212cbedcec984ce8bd6f89aa5db8e0b628435b.tar.xz
zsh-1e212cbedcec984ce8bd6f89aa5db8e0b628435b.zip
19281: zle-line-init special widget
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/zle.yo20
1 files changed, 20 insertions, 0 deletions
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index 085424ff0..08a8d8f69 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -695,6 +695,26 @@ item(tt(WIDGET) (scalar))(
 The name of the widget currently being executed; read-only.
 )
 enditem()
+
+subsect(Special Widget)
+
+There is one user-defined widget which is special to the shell.
+If it does not exist, no special action is taken.  The environment
+provided is identical to that for any other editing widget.
+
+startitem()
+tindex(zle-line-init)
+item(tt(zle-line-init))(
+Executed every time the line editor is started to read a new line
+of input.  The following example puts the line editor into vi command
+mode when it starts up.
+
+example(zle-line-init() { zle -K vicmd; }
+zle -N zle-line-init)
+
+)
+enditem()
+
 sect(Standard Widgets)
 cindex(widgets, standard)
 The following is a list of all the standard widgets,