Skip to content

[PR] tmux-visualiser displaying windows of wrong sessions when session names integers #2

Description

@oboote

Great little utility - super helpful.

I name my sessions with integers and use multiple windows per session - I noticed that tmux-visualiser would occasionally display windows in the wrong session pane.

A tweak to how tmux-visualiser resolves sessions addressed the issue.

When session names are integers (e.g. 0, 1, 2), tmux list-panes -t 2 is ambiguous — tmux can resolve 2 as a window index in the current session rather than "session named 2, active window". This causes the wrong pane ID to be returned, so the dashboard panel for session 2 ends up displaying content from an unrelated pane.

Fix: append : to the session name (-t session:) which is tmux's unambiguous syntax for "active window of this named session". Applied to both activePaneID and listPaneIDs.

#1

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions