From 43137b8e8f9ce8a3c9d6b0cd530102813fc6b5a6 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Mon, 12 Sep 2016 09:52:23 -0700 Subject: unposted: reference use of widgets to effect editor changes from a sched command --- Doc/Zsh/mod_sched.yo | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Doc/Zsh/mod_sched.yo') diff --git a/Doc/Zsh/mod_sched.yo b/Doc/Zsh/mod_sched.yo index 1350b9e4c..30b08a3ff 100644 --- a/Doc/Zsh/mod_sched.yo +++ b/Doc/Zsh/mod_sched.yo @@ -40,6 +40,11 @@ afterwards. This should be used with any scheduled event that produces visible output to the terminal; it is not needed, for example, with output that updates a terminal emulator's title bar. +To effect changes to the editor buffer when an event executes, use the +`tt(zle)' command with no arguments to test whether the editor is active, +and if it is, then use `tt(zle )var(widget)' to access the editor via +the named var(widget). + The tt(sched) builtin is not made available by default when the shell starts in a mode emulating another shell. It can be made available with the command `tt(zmodload -F zsh/sched b:sched)'. -- cgit 1.4.1