jaspernbrouwer / powerline-gitstatus

A Powerline segment for showing the status of a Git working copy
MIT License
383 stars 53 forks source link

Customize information formats with args #15

Closed ahaasler closed 5 years ago

ahaasler commented 7 years ago

This allows to customize formats for tag, behind, ahead, staged, unmerged, changed, untracked and stash in a config file:

"gitstatus": {
    "args": {
        "tag_format": " {}",
        "behind_format": " {}",
        "ahead_format": " {}",
        "staged_format": " {}",
        "unmerged_format": " {}",
        "changed_format": " {}",
        "untracked_format": " {}",
        "stashed_format": " {}"
    }
}

Users may want to change an icon, remove the specific number of unmerged files and just want to know there's unmerged content, or hide untracked files.

cowboy commented 7 years ago

Is there any reason why this can't be merged? Thanks!

jaspernbrouwer commented 7 years ago

No, I'm afraid I don't have a good reason, it boils down to lack of time 😞

It does look interesting though, so I'll try to push this up my priority list!

jcharaoui commented 5 years ago

I finally came around to testing this PR and it works great.

I prefer this solution to other that have been proposed since then, as it seems to be the most flexible.

ahaasler commented 5 years ago

It's great to see this merged!