Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

QuocAnhVu
Copy link

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 QuocAnhVu requested a review from svengreb as a code owner April 7, 2024 13:38
@QuocAnhVu
Copy link
Author

Related: tmux/tmux#3927

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant