Page 1 of 1

open a folder in a specific pane

Posted: 30 Dec 2023 09:35
by zzjean
Hello

I would like to be able to open a folder from the catalog in a new tab and in a specific panel whether it is active or not. For example, always open my folder in the first panel.

I know how to open a folder in a new tab and also simultaneously in both panels, but I cannot open a folder in a particular panel.

Is there a solution?

Thank you for your help

Re: open a folder in a specific pane

Posted: 30 Dec 2023 09:43
by highend
Afaik not without scripting that catalog entry (instead of providing just a path)

Re: open a folder in a specific pane

Posted: 30 Dec 2023 10:03
by zzjean
Thank you. This is what I would like to do, but I can't figure out how to do it.

Re: open a folder in a specific pane

Posted: 30 Dec 2023 10:43
by highend
picture.png
Open folder in specific pane.xys:

Code: Select all

perm $P_FLD;
    end (exists($P_FLD) != 2), quote($P_FLD) . " does not exist, aborted!";

    // Always open in new tab in pane 1
    if (get("Pane") == 2) {
        focus "P1";
        tab("new", $P_FLD);
        focus "P2";
    } else {
        tab("new", $P_FLD);
    }
    unset $P_FLD;

Re: open a folder in a specific pane

Posted: 30 Dec 2023 11:31
by zzjean
Thank you it's perfect. It works wonderfully