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

Unwanted characters in window status #1

Closed
omar2205 opened this issue Jul 10, 2021 · 6 comments
Closed

Unwanted characters in window status #1

omar2205 opened this issue Jul 10, 2021 · 6 comments

Comments

@omar2205
Copy link

omar2205 commented Jul 10, 2021

image

28 and 26 are status-left-length and status-right-length

@charlietag
Copy link
Owner

Dear @omar2205 ,
Can you show me the result of this command in this tmux status?
Thanks !
tmux show-option -g

@omar2205
Copy link
Author

Hey @charlietag, thanks for getting back to me,
image
I suspect those are the culprit, do you know how to remove them?

@charlietag
Copy link
Owner

Hi @omar2205 ,

Solution

I hope this could help you to remove them.

Modify this file manually:
~/.tmux/plugins/tmux-split-statusbar/scripts/helpers.sh

-46: status_format_0_tobe="$(echo "${status_format_0_default}" | sed 's/:status-left//g' | sed 's/:status-right//g')"
+46: status_format_0_tobe="$(echo "${status_format_0_default}" | sed 's/:status-left//g' | sed 's/:status-right//g' | sed 's#T;=/##g' )"

Tmux source code

  • But these are tmux default parameters, I'm not sure what they are really for.
    Ref. https://github.com/tmux/tmux/blob/master/options-table.c#L85

    /* Status line format. */
    #define OPTIONS_TABLE_STATUS_FORMAT1 \
    	"#[align=left range=left #{status-left-style}]" \
    	"#[push-default]" \
    	"#{T;=/#{status-left-length}:status-left}" \
    	"#[pop-default]" \
    	"#[norange default]" \
    

@omar2205
Copy link
Author

That almost did it
image
it still say the length (just the numbers now)

@charlietag
Copy link
Owner

Hi @omar2205 ,
I've push a new commit for this.

ddd6e6a#diff-e015cc3ac522b202bb23852488a7ac2c019e2c82568ecb387b97b60ebbecdf4b

Can you try to undo the change and update the repo to the latest status.

Command

Undo changes

git checkout ~/.tmux/plugins/tmux-split-statusbar/scripts/helpers.sh

Update the repo to the latest status

cd ~/.tmux/plugins/tmux-split-statusbar

git pull

@omar2205
Copy link
Author

Yep, it worked, thanks.

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

No branches or pull requests

2 participants