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

[BUG] Wrong color block at end, with tmux-nova theme #105

Closed
matthew-nm opened this issue Sep 28, 2023 · 2 comments
Closed

[BUG] Wrong color block at end, with tmux-nova theme #105

matthew-nm opened this issue Sep 28, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@matthew-nm
Copy link

When using this plugin along with the o0th/tmux-nova theme, there is a mis-colored space at the end of the segment.

I believe the space is added in by tmux-nova, but it is somehow an interaction with gitmux.

I would expect the mis-colored (dark) space background to be the same color (slightly lighter) as the characters around it.

As I expect to use it: fwd

Flipped for testing: flipped

Both have the dark block after the gitmux segment.

I'm also noticing that in the first picture, the battery percentage "100" is bolded (probably a holdover from the gitmux styling?)

gitmux is version 0.10.3 and the output looks like: #[fg=default]#[fg=default]#[fg=white,bold]⎇ #[fg=default]#[fg=white,bold]master #[fg=default]#[fg=yellow]↑·2#[fg=default,bg=default]

My config is basic but with layout: [branch, divergence].

  • gitmux version: 0.10.3
  • tmux version: 3.3a
  • maxOS
  • zsh
@matthew-nm matthew-nm added the bug Something isn't working label Sep 28, 2023
@arl
Copy link
Owner

arl commented Sep 30, 2023

Hi @matthew-nm

Thank you for filing the issue.
The problem of the first screenshot seems to be the missing clear, which means set background and foreground to the default values.
However the second screenshot shows that even with clear we still have a block that gets colored differently.

Gitmux has to decide how to let the status string after itself, and it should always be a clear block, by convention. That means I could solve the first case but it won't solve the second.

Maybe you can solve it by adding a tmux status string yourself to your tmux.conf, in order to have the different block colored as the rest?

@matthew-nm
Copy link
Author

I fixed with
set -g @nova-segment-git '#(gitmux -cfg $HOME/dotfiles/gitmux.conf "#{pane_current_path}")#[none]#[bg=#30324a]'
in my tmux.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants