Thanks.,
I don't know what to do with this script. I don't know what docs you're referring to.
The issue where "Turn On Navigation lock Automatically" is not turning on seems like a flat out bug to me. If this was fixed in a version after 13.7 let me know and I'll upgrade.
I'm going to have a bunch of paired folders. I want to manage this in an interface.
It only affects when happens if you turn on the dual-display while in a folder that's paired with another one, and turns on Navigation Lock at the same time if you do that.
It won't turn on Navigation Lock automatically if you already have a dual-display window and navigate into the folder some other way. You could do that very easily using a script, but I suspect it might cause more problems than it's worth: Just entering a folder to quickly look inside it would then start messing with the other side even if you didn't want it to.
Thank. I don't have a problem saving my lister with nav lock on but i use the lister dynamically and occasionally shift to folders that don't have a sync pair.
So two things I'm trying to address:
I don't want that popup in my face constantly telling me there's no pair. Can i prevent that?
Will my saved Lister remember the navigation lock if i save the lister after turning it on?
Basically i want to click folder 1 of the paired folder in the upper pane and have the other paried folder pop up in the lower pane.. If there's no pair, nav lock should have no affect and there should be no popups. This way it will save me steps but not get in my way.
This button will appear when you open a folder that is part of a pair. When clicked, it will open the other half of the pair in the other side of a dual.
This works for me. When I open a tab showing a subfolder of /dopusdata the button is shown and when clicked it opens the equivalent paired subfolder of /mydocuments/DIrectory Opus
You don't need an entry for each sub-folder, you can simply define the base folders as linked and turn on the 'Apply settings to all sub-folders' option.
Use the 'If non-existent' setting to choose what happens if a sub-folder doesn't exist.
I want to have these folders paired and not have the interface get in the way or require me to have to constantly toggle nav lock on/off.
How can I accomplish that? I don't want to have to click a button to bring up the 2nd part of the pair. that's the same as me clicking on the folder name in pane 2..
It should just follow me around in the target pane as best as it can if there is a paired folder and not disrupt the workflow with popups.
We've been talking about this today, and going back over some requests from just after 13 came out now. and we'll probably add some more paired folder options/modes to handle at least some of these requests (maybe all; nothing set in stone yet).
I know it is not hard to manually set Navigation Lock; Ctrl-Shift on the tab is one way to do it.
I would still like the option to have the convenience to set Navigation Lock from within Paired Folders preferences - even in an existing dual-display mode.
I tried to edit the pair.dcf later in this thread to Set NAVLOCK=On but was unsuccessful due to very weak Opus jscript skills.
Could you either add the option or show a modification in pair.dcf to do so? Thanks fro your attention.
@showif:=return Len(Resolve(source, "p")) > 0
function OnClick(clickData)
{
var cmd = clickData.func.command;
var src = cmd.sourcetab;
var lst = src.lister;
var fsu = DOpus.FSUtil();
var pairedFolder = fsu.GetFolderPair(src.path);
if (!pairedFolder.valid) return;
cmd.RunCommand('Go PATH="'+String(pairedFolder.path)+'" NEWTAB=findexisting OPENINDUAL');
// Link pair code follows...
lst.Update();
var candidates = (src.right) ? lst.tabsleft : lst.tabsright;
for (var i = 0; i < candidates.count; i++) if (String(candidates(i).path)==String(pairedFolder.path)) break;
cmd.runcommand('Go TABLINK='+src+','+candidates(i));
}
Wow. Thank you so much. I found your prior version of paired.dcf so useful that I wanted, but failed, to add Nav Lock to it. Your new code goes off in a direction I don't comprehend; I will study it. Thanks.
These two versions of paired,dcf make Paired Folders and Linked Tabs useful to me. I think they ought to be built in to Opus.