Skip to content

Wrap to next tab when attempting to move to pane beyond edge of current tab #20383

Description

@TetraK1

Description of the new feature

In Zellij, when you are in the rightmost pane of a tab, and you use the keybind for moving to the next pane to the right, you instead move to the leftmost pane in the next tab. When in the leftmost pane of a tab, moving a pane to the left sends you to the rightmost pane of the previous tab. I would like to see this in terminal.

Proposed technical implementation details

I have basic behaviour (i.e. the easiest bit) for this working, but not tests or settings.

There are still questions about which pane to switch to if you have multiple panes at the edge of the new tab, that would be viable candidates e.g. do you

  • try to pick the pane that is always the topmost one in the new tab
  • try to align verticality of the new pane?
  • go to the last focused pane in the new tab?

The logic for moving panes generally could probably apply here, and treat the join between tabs as just another pane separator (join the pane trees of the two tabs, as if they were a horizontal split at the highest level)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-UserInterfaceIssues pertaining to the user interface of the Console or TerminalIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-TerminalThe new Windows Terminal.

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions