nordtheme / tmux

An arctic, north-bluish clean and elegant tmux color theme.
https://www.nordtheme.com/ports/tmux
MIT License
1.06k stars 141 forks source link

Fixed incorrect tab formatting when 'window_activity_flag' is set on window #91

Open QuocAnhVu opened 4 months ago

QuocAnhVu commented 4 months ago

If there is a process running on another tab, currently the default behavior in tmux is to swap fg and bg colors, causing tabs to look like this:

Screenshot from 2024-04-06 14-24-19 The second tab has activity and has flipped colors.

One workaround is to set window-status-activity-style to an empty string to disable the color inversion. This is safe because window-status-activity-style is ignored when window-status-format is set.

Screenshot from 2024-04-06 14-31-29 The second tab has activity but no visual signifier.

To improve on this, we can make use of conditionals to bold activity text.

Screenshot from 2024-04-07 05-50-08 The second tab has activity and is bolded.

The third figure is the fix and functionality that this pull request provides.

QuocAnhVu commented 4 months ago

Related: https://github.com/tmux/tmux/issues/3927