Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab template children ignores previous split direction #3247

Open
diegofariasm opened this issue Apr 6, 2024 · 0 comments
Open

Tab template children ignores previous split direction #3247

diegofariasm opened this issue Apr 6, 2024 · 0 comments

Comments

@diegofariasm
Copy link

Basic information

zellij --version: zellij 0.39.2

stty size: 48 175

uname -av or ver(Windows): Linux tokyo 6.1.82 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar 15 18:27:50 UTC 2024 x86_64 GNU/Linux

2. Issues with the Zellij UI / behavior / crash

Issue description

When trying to use children with a tab template, the children of said template seem to ignore the split
direction of the parent.

Minimal reproduction

Expected behaviour

When using the panes directly, instead of as the template's children, they work as expected; being split vertically.

layout {
    tab_template name="ui" {
        pane size=1 borderless=true {
            plugin location="zellij:compact-bar"
        }
        pane split_direction="vertical" {
            pane
            pane
        }
    }
    ui
}

As seem on terminal
expected

Unexpected

When using something like this, the children of ui will be placed horizontally, which is the default;
ignoring the split_direction of where they are.

layout {
    tab_template name="ui" {
        pane size=1 borderless=true {
            plugin location="zellij:compact-bar"
        }
        pane split_direction="vertical" {
            children
        }
    }
    ui {
       pane
       pane
    }
}

As seem on terminal
panic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant