zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
19.38k stars 610 forks source link

MoveFocusOrTab does not switch tab when a pane is in fullscreen #3434

Open eproxus opened 1 week ago

eproxus commented 1 week ago

Issue description

When having two tabs, with the first having two panes of which one is in fullscreen, pressing Alt does not move to the second tab.

The following keybinding from the default bindings:

    shared_except "locked" {
        // ...
        bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
        bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
        // ...
    }

seems to not work when a pane is in fullscreen, even though there is another tab to switch to. Going to fullscreen does not automatically enter locked mode so I had the expectation that this would work.

Minimal reproduction

  1. Create two tabs
  2. In the first tab, create two panes
  3. Make the first pane fullscreen
  4. Press Alt+Right
    • Expected: The second tab is focused
    • Actual: nothing happens

Other relevant information

Zellij: 0.40.1