arl / gitmux

:computer: Git in your tmux status bar
MIT License
630 stars 24 forks source link

[FEATURE] Conditional Spacing #90

Closed joshmedeski closed 1 year ago

joshmedeski commented 1 year ago

Is your feature request related to a problem? Please describe. I would like to conditionally load spaces in my layout based off what data is avaliable.

Describe the solution you'd like I'd like spaces to be rendered conditionally based on if it's needed to show clear spacing.

Describe alternatives you've considered I've thought about prepending spaces on the symbols, but it's creates a separate set of problems with spacing.

Additional context Without spaces, you'll notice the different sections bump up against each other.

Screenshot 2023-03-07 at 5 35 15 PM

If I do include ' ' space values in my layout and the different sections shown I end up with unwanted whitespace.

Screenshot 2023-03-07 at 5 35 33 PM