o0th / tmux-nova

tmux theme
MIT License
173 stars 20 forks source link

Feature: nullable segments #24

Closed goolmoos closed 2 years ago

goolmoos commented 2 years ago

With these changes, segments that evaluate to an empty string will appear correctly. That is, they will emit no padding, and, if present, the nerdfont seperators will appear once per not empty segment and be colored correctly. this makes segments like: set -g @nova-segment-prefix "#{?client_prefix,PREFIX,}" look nice. (before this change, if this segment had a unique color you could see it even without the prefix set. (Note: this works for all segments except the leftmost one in the left side)

o0th commented 2 years ago

Thanks for the fix! Looks good to me :)