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
zellij --version: zellij 0.37.2 stty size: 44 146 uname -av or ver(Windows): Linux thinkpad-p14s 5.19.0-45-generic #46~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 7 15:06:04 UTC 20 x86_64 x86_64 x86_64 GNU/Linux alacritty --version: alacritty 0.12.1
Further information
The Visible(true) event to a plugin is fired when the session is first started, but the Visible(true) event is not fired when a Zellij session is detached-reattached.
Is it possible to change it so that the Visible(true) event is also fired on reattachment?
In the following example, the UI timer could not be started when detached-reattached a session.
fnupdate(&mutself,event:Event) -> bool{letmut render:bool = false;match event {Event::Visible(visible) => {// TODO:// If the Zellij session is detached, it is called with false,// but if it is reattached, this event is not fired.// Working on a way to restart the timer when it is reattached.if visible {set_timeout(0.0);}self.visible = visible;}Event::Timer(_t) => {// ..snip..
render = true;ifself.visible{set_timeout(INTERVAL_TIME);}}// ..snip..}
render
}
Reproduction
Build example plugin and lauch (fisrt session)
git clone https://github.com/h1romas4/zellij-datetime
cd zellij-datetime
cargo build
zellij -l plugin.kdl
Hello.
Basic information
zellij --version
: zellij 0.37.2stty size
: 44 146uname -av
orver
(Windows): Linux thinkpad-p14s 5.19.0-45-generic #46~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jun 7 15:06:04 UTC 20 x86_64 x86_64 x86_64 GNU/Linuxalacritty --version
: alacritty 0.12.1Further information
The
Visible(true)
event to a plugin is fired when the session is first started, but theVisible(true)
event is not fired when a Zellij session is detached-reattached.Is it possible to change it so that the
Visible(true)
event is also fired on reattachment?In the following example, the UI timer could not be started when detached-reattached a session.
Reproduction
git clone https://github.com/h1romas4/zellij-datetime cd zellij-datetime cargo build zellij -l plugin.kdl
Detach session (ctrl + o, d)
reattach session
Best regards.
The text was updated successfully, but these errors were encountered: