Page 1 of 1

Dual Pane - Start with a current cloned tab

Posted: 05 Oct 2022 22:17
by kalkas789
Hello,

Is it possible that a dual pane opens with the cloned current tab. Lets say that I am currently in a single pane mode and that my current tab is C:\users\xyz\. I wish to open a dual pane which has the satrting point C:\users\xyz\, the same one before open a dual pane. Is it possible? When I open a dual pane, it starts on a random location.

When dealing with dual pane, I want a similar behaviour as when creating a new tab. The new tab starts with the same location as the previous tab. Is it possible to do that with dual panes,i.e., the starting location is the same as the other pane?

Kind regards,
Aleksandar

Re: Dual Pane - Start with a current cloned tab

Posted: 05 Oct 2022 22:54
by highend
Use a script. e.g. something like:

Code: Select all

    if (!get("#800")) {
        $path = tab("get", "path");
        #800; // Open 2nd pane
        focus "P2";
        goto $path;
        #353; // Close all other tabs
        focus "P1";
    }

Re: Dual Pane - Start with a current cloned tab

Posted: 06 Oct 2022 16:29
by kalkas789
Hello,

Thanks for your reply.

I am not sure how to implement this script in the app. I am afraid that I am not so well versed with scripts and practical knowledge of how to use scripts.

Best regards,
Aleksandar

Re: Dual Pane - Start with a current cloned tab

Posted: 06 Oct 2022 16:44
by highend
Animation.gif

Re: Dual Pane - Start with a current cloned tab

Posted: 06 Oct 2022 21:09
by GreetingsFromPoland
this is great and very informative. is it possible for xyplorer to add the functionality that directory opus has for adding script, toolbar buttons, etc. from the forums ? they are formatted in such a way that they can be "drag dropped" from the forum directly onto the software.

after searching their forums, i found a few customs that i wanted and it was incredibly easy to add when they are posted. if xyplorer had something similar, it would help out quite a bit with sharing.

Re: Dual Pane - Start with a current cloned tab

Posted: 06 Oct 2022 21:41
by highend
Animation.gif

Re: Dual Pane - Start with a current cloned tab

Posted: 06 Oct 2022 22:46
by kalkas789
Hello,

Thanks for the animation explaining how to add script in XYplorer! First, I thought that it solved the problem. But the other pane starts always with a particular location. I cannot change it. It does not start at the same location as the first pane.

Best regards,
Aleksandar

Re: Dual Pane - Start with a current cloned tab

Posted: 06 Oct 2022 22:49
by GreetingsFromPoland
amazing! thank you for sharing!

Re: Dual Pane - Start with a current cloned tab

Posted: 07 Oct 2022 04:39
by kalkas789
Hello,

Once again, thanks for the animation explaining how to add the script in XYplorer! Please ignore my previous message where I said that the script does not work as expected. I made a mistake in executing it. But the script works as desired, it opens a dual panel with the same location of the first pane. :D

Sorry for my previous message. The script works wonderfully! :D

Best regards,
Aleksandar