open a folder in a specific pane

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
zzjean
Posts: 81
Joined: 22 Nov 2009 14:56

open a folder in a specific pane

Post 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

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: open a folder in a specific pane

Post by highend »

Afaik not without scripting that catalog entry (instead of providing just a path)
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

zzjean
Posts: 81
Joined: 22 Nov 2009 14:56

Re: open a folder in a specific pane

Post by zzjean »

Thank you. This is what I would like to do, but I can't figure out how to do it.

highend
Posts: 13033
Joined: 06 Feb 2011 00:33

Re: open a folder in a specific pane

Post by highend »

picture.png
picture.png (23.9 KiB) Viewed 172 times
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;
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

zzjean
Posts: 81
Joined: 22 Nov 2009 14:56

Re: open a folder in a specific pane

Post by zzjean »

Thank you it's perfect. It works wonderfully

Post Reply