tmux icon indicating copy to clipboard operation
tmux copied to clipboard

There's an extra spacing added when numbers are right-aligned

Open adaviloper opened this issue 11 months ago • 2 comments

I am not requesting help with my configuration and believe something is genuinely broken.

  • [x] Something is really actually broken.

Is there an existing issue outlining your problem?

  • [x] I have searched the existing issues and they do not solve my problem.

Describe your problem.

There is an extra spacing between the window text and the window number when the numbers are aligned to the right.

set -ogq @catppuccin_window_text "#W"
set -ogq @catppuccin_window_number "#I |"
set -ogq @catppuccin_window_current_text "#W"
set -ogq @catppuccin_window_current_number "#I |"

set -ogq @catppuccin_window_status_style "rounded" # basic, rounded, slanted, custom, or none
set -ogq @catppuccin_window_number_position "left"

Image


set -ogq @catppuccin_window_text "#W"
set -ogq @catppuccin_window_number "| #I"
set -ogq @catppuccin_window_current_text "#W"
set -ogq @catppuccin_window_current_number "| #I"

set -ogq @catppuccin_window_status_style "rounded" # basic, rounded, slanted, custom, or none
set -ogq @catppuccin_window_number_position "right"

Image

I've tried applying the suggestion in this comment with no success. I think it has to do with this line that has a leading space, but I don't know the project well enough.

Paste your configuration.

set -ogq @catppuccin_window_text "#W" set -ogq @catppuccin_window_number "| #I" set -ogq @catppuccin_window_current_text "#W" set -ogq @catppuccin_window_current_number "| #I"

set -ogq @catppuccin_window_status_style "rounded" # basic, rounded, slanted, custom, or none set -ogq @catppuccin_window_number_position "right"

Attach screenshots.

No response

What tmux version are you seeing the issue on?

tmux 3.5a

Any additional comments?

No response

adaviloper avatar Jan 17 '25 17:01 adaviloper

Are you happy to send a PR? Also why are you using -o in your config file?

kjnsn avatar Jan 18 '25 06:01 kjnsn

I'm using the -o flag because that's what is shown in the configuration reference.

PR has been made, but keep in mind that I don't really know anything about working with Tmux plugins, so open to feedback.

adaviloper avatar Jan 18 '25 18:01 adaviloper