Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Calling a zle widget from a function
- X-seq: zsh-users 11556
- From: Angel Olivera <redondos@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Calling a zle widget from a function
- Date: Tue, 12 Jun 2007 16:18:21 -0300
- In-reply-to: <200706121751.l5CHpr8D015577@xxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070612144404.GN14435@xxxxxxxxxxxxxxxxxxxx> <200706121514.l5CFEaH5029180@xxxxxxxxxxxxxx> <20070612173249.GO14435@xxxxxxxxxxxxxxxxxxxx> <200706121751.l5CHpr8D015577@xxxxxxxxxxxxxx>
On Tue 12.Jun.07 18:51, Peter Stephenson wrote:
You can delete any existing scheduled job with something like:
sched | while read line; do
if [[ $line = *clear-zle-screen* ]]; then
sched -${line%% *}
fi
done
Great, doing this in precmd works as expected.
(It would be nice if sched provided an array to access scheduled events
but it doesn't. That's an easy tweak I may look at.)
Sure, that'd be nice to make the above code look much cleaner. I'm sure
there'd be plenty of other uses for this array than just removing
elements, too.
Thank you very much once again. Cheers.
--
redondos
Attachment:
pgpBoIjgzCUdv.pgp
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author