zsh-workers
 help / color / mirror / code / Atom feed
* Highlight hook
@ 2015-09-27  0:28 Mikael Magnusson
  2015-12-16  6:02 ` PATCH: Add zle-line-pre-redraw hook for highlighting Mikael Magnusson
  0 siblings, 1 reply; 7+ messages in thread
From: Mikael Magnusson @ 2015-09-27  0:28 UTC (permalink / raw)
  To: zsh workers

I've pushed a branch (mikachu/redrawhook) that adds a hook called
zle-line-pre-redraw (maybe not the best name). This is called whenever
the line is edited or the cursor moves (hopefully). As you may spot
from the first commit date, I've used this for a while. There were
some problems with calling it from inside zrefresh() (not to mention
how inefficient that is with how often zrefresh() gets called), but so
far none of those have showed up with where I call it now.

If there are no major problems with this, it might be nice for the
highlighters to not have to wrap every single widget in zsh to call
the highlighting when the line changes, since that also has other side
effects.

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-01-13  0:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-27  0:28 Highlight hook Mikael Magnusson
2015-12-16  6:02 ` PATCH: Add zle-line-pre-redraw hook for highlighting Mikael Magnusson
2015-12-16  8:05   ` Bart Schaefer
2015-12-19  9:49     ` Daniel Shahaf
2016-01-10 22:17       ` m0viefreak
2016-01-11 15:26         ` Mikael Magnusson
2016-01-13  0:57           ` Daniel Shahaf

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).