From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: zle-line-pre-redraw_hooks
Date: Fri, 15 Jan 2016 06:26:47 +0000 [thread overview]
Message-ID: <20160115062647.GA28411@tarsus.local2> (raw)
If a user has two different plugins that each want to be invoked from
a pre-redraw hook, right now there is no easy way to achieve that.
Would it make sense to provide a way to register multiple
zle-line-pre-redraw hooks? Similar to $chpwd_functions?
Concrete suggestion: ship a default implementation of zle-line-pre-redraw
that invokes all functions in $zle_line_pre_redraw_hooks, for example,
by using callhookfunc().¹
Makes sense?
Cheers,
Daniel
¹ It should probably skip the block starting in utils.c:1473 to avoid
having both z-l-p-redraw and z_l_p_redraw, former a widget and latter
a function that widget calls: the names would be too similar.
next reply other threads:[~2016-01-15 6:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-15 6:26 Daniel Shahaf [this message]
2016-01-15 19:14 ` zle-line-pre-redraw_hooks Bart Schaefer
2016-01-18 2:25 ` zle-line-pre-redraw_hooks Daniel Shahaf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160115062647.GA28411@tarsus.local2 \
--to=d.s@daniel.shahaf.name \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).