dj95 / zjstatus

A configurable statusbar plugin for zellij
MIT License
435 stars 9 forks source link

Support git stuff? #7

Open H4ckint0sh opened 1 year ago

H4ckint0sh commented 1 year ago

Show git stuff in status bar? like Gitmux

dj95 commented 1 year ago

Cool idea! Would be neat to have this in the statusbar. Access to the .git/ folder seems to work. We just need a rust crate that is able to parse the information in there and is compatible with WASM.

Piturnah commented 1 year ago

Maybe gitoxide?

dj95 commented 1 year ago

Gitoxide looks great. Unfortunately it is currently not compatible with WASM.

https://github.com/Byron/gitoxide/issues/463

Maybe we can utilise it as soon as it is compatible.

danielyrovas commented 9 months ago

In the meantime could we invoke gitmux directly if it is installed? I get an output from it which looks similar to what zjstatus expects:

#[fg=default]#[fg=default]#[fg=white,bold]⎇ #[fg=default]#[fg=white,bold]trunk #[fg=default]#[fg=cyan]origin/trunk#[fg=default] - #[fg=default]#[fg=green,bold]● 6 #[fg=red,bold]✚ 3#[fg=default,bg=default]%
dj95 commented 9 months ago

Even though it looks similar, it is not compatible.

You either need to write a widget that supports tmux plugins or you could use the command widget to add git details to zjstatus. The latter one should be the easiest one