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

floating_panes does not inherit cwd from tab #3364

Open
scabala opened this issue May 21, 2024 · 1 comment
Open

floating_panes does not inherit cwd from tab #3364

scabala opened this issue May 21, 2024 · 1 comment
Assignees

Comments

@scabala
Copy link

scabala commented May 21, 2024

2. Issues with the Zellij UI / behavior / crash

Issue description

When defining floating_panes inside tab, panes in floating_panes do not inherit cwd from tab, as others parts of layout do.

Minimal reproduction

Having following layout:

layout cwd="/tmp" {
    tab name="Tab #1" cwd="/mnt" {
        pane name="Pane #1" {

        }
        floating_panes {
            pane name="Floating pane #1"
        }
    }

}

run it via zellij -l ./layout.kdl, nomal pane (Pane #1) will have working directory set to /mnt. However, Floating pane #1 will have current working directory set to /tmp.

I think user expectation would be to have current working directory set for floating panes to /mnt.

Other relevant information

@imsnif imsnif self-assigned this May 21, 2024
@rockboynton
Copy link

just noticed this as well. And it doesn't seem to just be within a layout. Even if I run the command line action it ignores the cwd option
zellij action new-pane --cwd=/home/rboynton/sources --floating just starts at /home/rboynton

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

3 participants