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

New pane opens on the left #3338

Open
janos-r opened this issue May 8, 2024 · 1 comment
Open

New pane opens on the left #3338

janos-r opened this issue May 8, 2024 · 1 comment

Comments

@janos-r
Copy link

janos-r commented May 8, 2024

Basic information

zellij --version: zellij 0.40.1

stty size: 135 col, 34 rows

uname -av or ver(Windows): Linux 5.15.0-106-generic #116-Ubuntu SMP Wed Apr 17 09:17:56 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

2. Issues with the Zellij UI / behavior / crash

Issue description

The purpose of the config below is to have the same default swap layouts, but with a custom starting directory.
The bellow layout config almost works, but when the cwd part is present, new panes (alt+n) open on the left from the current pane. Without the cwd, panes open on the right (as expected).

Minimal reproduction

cd ~/.config/zellij/layouts
zellij setup --dump-swap-layout default > default.kdl
add

layout {
    ui cwd="~/Documents"
   ... <--- the dump
}

Other relevant information

When in the scrnshot bellow, after hitting alt+] to flip the layout, the second pane is suddenly on the bottom, and with another press, it is on the right, as if it were on the right in the beginning, as it should have been.

scrnshot

image

@thomjiji
Copy link

I found that when I quit a session (Ctrl q) and then resurrected/re-attach it (zellij attach <session-name>), the new pane will appear on the left instead of the right which is confusing. If I create and enter a new session (by running zellij), new pane will appear on the right which is the default.

image

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

2 participants