dj95 / zjstatus

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

Support showing the output of a command #5

Closed cor closed 8 months ago

cor commented 10 months ago

It would be really convenient if you could show the output of an arbitrary command in this statusbar

dj95 commented 10 months ago

Hi, thanks for your suggestion. I believe it's not possible at the moment since zellij plugins are executed in a wasm sandbox. They are neither able to access the root fs (just a sandboxed part) nor able to run certain programs.

Maybe the zellij api will provide this feature or permission in the future.

cor commented 10 months ago

Makes sense, thank you!

dj95 commented 10 months ago

Found the relating issue on zellijs side.

https://github.com/zellij-org/zellij/issues/2559

Will implement it as soon as the API arrives with zellij.

dj95 commented 8 months ago

https://github.com/zellij-org/zellij/pull/2862 implemented the feature. I'll try it, when I have time for it with the development version of zellij.

dj95 commented 8 months ago

Using the feature with the development version of zellij since a week and it seems to be stable (at least on my side). I'll wait for zellijs new release and merge it then directly.

Feel free to test the feature with a development version of zellij.

dj95 commented 8 months ago

Closed, since zellij 0.39.0 is released and zjstatus 0.9.0 supports now command widgets.