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

Does not work on other status lines except the first one #36

Open
trallnag opened this issue Oct 9, 2021 · 1 comment
Open

Does not work on other status lines except the first one #36

trallnag opened this issue Oct 9, 2021 · 1 comment

Comments

@trallnag
Copy link

trallnag commented Oct 9, 2021

To reproduce use this configuration:

set-option -g status 2
set -g status-right '#{prefix_highlight}'
set-option -g "status-format[1]" "#{prefix_highlight}"

set-option -g @plugin tmux-plugins/tpm

set-option -g @plugin tmux-plugins/tmux-prefix-highlight
set-option -g @prefix_highlight_show_copy_mode on
set-option -g @prefix_highlight_show_sync_mode on

run-shell ~/.tmux/plugins/tpm/tpm

I would expect the #{prefix_highlight} everywhere, not just the first status line.

@abraxas86
Copy link

I'm trying to figure out this same kind of problem with a different plugin... I think it's because of how they're set up, but I'm not sure if this is a plugin-specific thing or a tpm thing.

    local -r status_left_value="$(tmux_option "status-left")"
    tmux set-option -gq "status-left" "${status_left_value//$place_holder/$highlight}"

    local -r status_right_value="$(tmux_option "status-right")"
    tmux set-option -gq "status-right" "${status_right_value//$place_holder/$highlight}"

Like the other project I'm looking at, the code seems to explicitly call status-left and status-right but there's nothing in there for format-status[i]

I would have expected the plugins to just return values, but apparently they're more complex than that

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