Open H4ckint0sh opened 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.
Maybe gitoxide?
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.
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]%
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
Show git stuff in status bar? like Gitmux