You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the WinResize hook will be called every single time the window is resized, which can be a lot of times when I resize my terminal for like 1s.
This makes a lot of unecessary calls to callbacks that probably don't really need that much accuracy, and would rather be called -say- every 1 full second. E.g. refreshing the *doclist*buffer when a manpage is open.
How about letting users specify a delay between two callbacks when the hook is set, so that we can avoid that ?
hook global WinResize 1.0 %{ … }
The above line would wait for at least 1.0 second between two calls to the actual code.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I noticed that the
WinResize
hook will be called every single time the window is resized, which can be a lot of times when I resize my terminal for like 1s.This makes a lot of unecessary calls to callbacks that probably don't really need that much accuracy, and would rather be called -say- every 1 full second. E.g. refreshing the
*doclist*
buffer when a manpage is open.How about letting users specify a delay between two callbacks when the hook is set, so that we can avoid that ?
The above line would wait for at least 1.0 second between two calls to the actual code.
Thanks.
The text was updated successfully, but these errors were encountered: