From 1e212cbedcec984ce8bd6f89aa5db8e0b628435b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 12 Dec 2003 22:53:27 +0000 Subject: 19281: zle-line-init special widget --- Doc/Zsh/zle.yo | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Doc') 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, -- cgit 1.4.1