Skip to content

Stacked panes expands last pane after command #2733

@serranomorante

Description

@serranomorante

t-rec_7

Basic information

zellij --version: main and 0.37.2
stty size: 59 231
uname -av: Linux arch 6.1.47-1-lts x86_64 GNU/Linux

List of programs you interact with as, PROGRAM --version: output cropped meaningful, for example:

  • NVIM v0.9.1
  • kitty 0.29.2
  • konsole 23.04.3

Steps to reproduce

  1. Open zellij with the provided layout (see below)
  2. Verify in tab 1 and in tab 2 that of all of the stacked panes, only the first one is expanded. Leave it that way.
  3. Go to tab 3 execute this command: zellij run -f -- fish
  4. Return to tab 1 and tab 2 (with ctrl+t <left|right arrows>) and you will notice that even thought the first pane is highlighted it is actually not expanded but the last panes are the expanded ones.

Use this layout to reproduce the issue:

layout {
  default_tab_template {
    children
    pane size=1 borderless=true {
      plugin location="zellij:compact-bar"
    }
  }
  tab name="tab 1" {
    pane split_direction="horizontal" stacked=true {
      pane name="pane 1"
      pane name="pane 2"
      pane name="pane 3"
      pane name="pane 4"
    }
  }
  tab name="tab 2" {
    pane split_direction="horizontal" stacked=true {
      pane name="pane 1"
      pane name="pane 2"
    }
  }
  tab name="here execute: zellij run -f -- fish" {
    pane name="here execute: zellij run -f -- fish"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions