Skip to content

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

Open
@trallnag

Description

@trallnag

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.

Activity

abraxas86

abraxas86 commented on Sep 28, 2024

@abraxas86

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @abraxas86@trallnag

        Issue actions

          Does not work on other status lines except the first one · Issue #36 · tmux-plugins/tmux-prefix-highlight