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

[Swap Layout] Cannot create child panes in stacked pane #2274

Closed
kuroahna opened this issue Mar 11, 2023 · 0 comments · Fixed by #2298
Closed

[Swap Layout] Cannot create child panes in stacked pane #2274

kuroahna opened this issue Mar 11, 2023 · 0 comments · Fixed by #2298
Assignees

Comments

@kuroahna
Copy link

Basic information

zellij --version: zellij 0.35.1
stty size: 36 152
uname -av: Linux DARE 4.4.0-19041-Microsoft #2311-Microsoft Tue Nov 08 17:09:00 PST 2022 x86_64 GNU/Linux (I am running WSL1)

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

> nvim --version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Further information

Reproduction steps:

  1. zellij setup --dump-layout default > ~/.config/zellij/layouts/default.kdl
  2. zellij setup --dump-swap-layout default > ~/.config/zellij/layouts/default.swap.kdl
  3. vim ~/.config/zellij/layouts/default.swap.kdl
  4. Edit the swap_tiled_layout named stacked that comes by default to
swap_tiled_layout name="stacked" {
    ui {
        pane stacked=true {
	    children
        }
    }
}
  1. Save :wq
  2. Start zellij
  3. Create 2 new panes by ALT + N (3 total panes)
  4. Swap to the STACKED swap layout by pressing ALT + ]
  5. See all the panes are stacked below each other
  6. Try to create a new pane by pressing ALT + N, but nothing happens. Trying CTRL+P -> d to split down shows CANNOT SPLIT and also CTRL+P -> r to split to the right shows CANNOT SPLIT

Workaround:
The workaround seems to be switch back to the HORIZONTAL or VERTICAL swap layout, then create the new pane, and then switch back to the STACKED swap layout

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

Successfully merging a pull request may close this issue.

2 participants