Thanks very much. I had paired my Music Archive folder with my MP3 Player folder, much of which has the same folder structure. After playing a little with your script and turning it off and on a few times I have decided I like it just as it is with the newtab=findexisting. I also set Prefs to include all subfolders.
In Opus 12 I used Leo's Go Parallel script for these folders and found it to be a very useful navigation button with the Toggle and Select command switches.
Using these two scripts together creates all kinds of new scenarios, but what tabs are what can get a little confusing. However, I think in real use this dual scripting will be more useful than a hindrance or a cause of confusion.
Personally, I think Dopus should make this an option for paired folders. Some of the options that are already on the Paired Folders screen kind of alludes to that functionality even....
But still, this little script does the trick in the meantime!
@showif:=return Len(Resolve(source, "p")) > 0
function OnClick(clickData)
{
var cmd = clickData.func.command;
// See https://resource.dopus.com/t/paired-folders-are-they-already-functional/46101/5
cmd.runcommand("Go OPENINDUAL NEWTAB=findexisting PATH {sourcepath|pair}");
}
A button will appear only when you open a folder that is part of a paired folder. You can then decide to open the pair or not. Click on the button and it will open the other half of the pair in the other side of a dual lister. Kudos to @aussieboykie
What exactly is a valid folder? I have the script installed, navigate to a folder of which i know there exists a paired folder, but it won't be opened in the destination. There's no config cog either, to change any details.
No, both folders are present in my standard tab set. So if i click either of them, the paired folder tab is activated. I'm not quite sure how your script is supposed to work, like, if it would fetch the paired folder, even if it's not present somewehere in the destination as an existing tab (i guess this is how the script is supposed to work).
What do you mean by change folders? Like i wrote, if i enter a folder that is part of a pair, nothing happens. So change doesn't mean to go into that folder?
In any folder tab? Or does it have to be part of a paired folder yet? So, i'm in a paired folder, go into a subfolder here, and on the other side nothing changes. Maybe you can give me some instruction, what exactly to do?
No, i see no effect here. I don't even have that "paired" symbol on the tabs here, since the may belong to that dual display mode, and even the "link tabs" symbol is missing from the menu. I also don't see, what would happen in a single display mode with that script. So i'd enter tab A, and it will open the linked tab B instead?
By the way, i very often have read about scripts here, that sounded interesting, but in maybe 90% of the cases i had no idea, what exactly they would do, despites having a (too short) description included at the top.