zjstatus icon indicating copy to clipboard operation
zjstatus copied to clipboard

Support git stuff?

Open H4ckint0sh opened this issue 2 years ago • 5 comments

Show git stuff in status bar? like Gitmux

H4ckint0sh avatar Sep 11 '23 14:09 H4ckint0sh

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.

dj95 avatar Sep 11 '23 17:09 dj95

Maybe gitoxide?

Piturnah avatar Sep 14 '23 22:09 Piturnah

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.

dj95 avatar Sep 24 '23 09:09 dj95

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]%

danielyrovas avatar Dec 12 '23 05:12 danielyrovas

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

dj95 avatar Dec 12 '23 06:12 dj95