nosarthur / gita

Manage many git repos with sanity 从容管理多个git库
MIT License
1.67k stars 74 forks source link

show status as words as well as colour in `gita ll` #243

Closed yellowtailfan closed 1 year ago

yellowtailfan commented 1 year ago

It would be great if the status of each repo could be shown as a word as well as using colour. This would help when using the tool only occasionally because I wouldn't need to look up what the colours mean. It's good to still display the colour as well as it makes the altered repo states stand out.

Example (colour = status word -- meaning): white = missing -- local has no remote green = [blank] -- local is the same as remote red = diverged -- local has diverged from remote purple = ahead -- local is ahead of remote (good for push) yellow = behind -- local is behind remote (good for merge)

This status word could be added as a new column next to the coloured column of active branch names.

nosarthur commented 1 year ago

Thanks, this is a good idea. I can add an information item and expose it to gita info

tinder-cfuller commented 1 year ago

@yellowtailfan Would symbols such as #245 work for you instead of words?

yellowtailfan commented 1 year ago

@yellowtailfan Would symbols such as #245 work for you instead of words?

Yes sounds good -- ideally the symbols are similar to those used by other Git status tools. E.g. bash-git-prompt or oh-my-posh.

Ah I see you are already borrowing the symbols from the Spaceship zsh prompt. Nice! 👌

yellowtailfan commented 1 year ago

I think this is nicely dealt with in #245.