zellij icon indicating copy to clipboard operation
zellij copied to clipboard

floating_panes does not inherit cwd from tab

Open scabala opened this issue 1 year ago • 2 comments

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

scabala avatar May 21 '24 19:05 scabala

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

rockboynton avatar May 21 '24 22:05 rockboynton

Same here - command line action and floating both not working.

mikebcbc avatar Aug 29 '24 14:08 mikebcbc

Fixed in 0.41.2 so closing

scabala avatar Dec 08 '24 23:12 scabala