dj95 / zjstatus

A configurable statusbar plugin for zellij
MIT License
360 stars 6 forks source link

Ability to hide or auto-hide status bar after timeout? #19

Open multivac61 opened 8 months ago

multivac61 commented 8 months ago

Thank you for this beautiful plugin. I want to ask if it is possible to hide the statusbar using a shortcut? Alternatively auto-hide it after x seconds.

Best!

dj95 commented 8 months ago

Hey,

thanks for your kind words.

Unfortunately I think it won't be possible to hide the statusbar with a shortcut from within zjstatus. Plugins are only allowed to process keys, that are directly sent into their pane. Otherwise plugins would be able to read passwords or other sensitive information, which implies a critical impact on the security. Therefore we cannot achieve it from within the plugin.

Hiding it after X seconds might be possible. zjstatus will then only pop up on certain events (like changing the mode, creating a pane/tab). Would this fit into your use case?

multivac61 commented 8 months ago

Auto hide would be amazing!

dj95 commented 7 months ago

I've tried to implement the behaviour, but came across a bug within rendering. Auto hiding can be finished, when the following bug is resolved: https://github.com/zellij-org/zellij/issues/2949

dj95 commented 2 months ago

Together with the pipes feature and the upcoming zjstatus feature of remote control it would also be possible to implement a shortcut for hiding zjstatus. The only thing preventing me from implementing this is the still open rendering issue :/

roland-5 commented 2 months ago

Glitches appears or something else?

dj95 commented 2 months ago

Yes @roland-5 , like in the screenshots of the linked zellij issue. There are weird glitches in the complete terminal, when a pane is hidden, that is specified in a layout file.