Paired Folders - Nav Lock issues

I'm experimenting with paired folders. This is a main reason I upgraded.

When I set the pair up, I have 2 issues;

  1. I have turn on navigation lock automatically. This doesn't happen. I have to turn it on.
  2. When nav lock is on and i go to a folder that isn't paired I get a popup telling me it's not paired. That's distracting to the workflow.

I want it to navigate to the paired folder if it's there. If not, do nothing. No popups. If I don't enable nav lock, nothing happens.

What can i do? I'm on 13.7

Try

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.

Any guidance would be appreciated.

image

The bottom option there is tied to the first one.

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:

  1. I don't want that popup in my face constantly telling me there's no pair. Can i prevent that?

  2. 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.

Pair.dcf (815 Bytes)

@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}");
}

I have many of these to do and many will have sub-folders. How will that factor in?

Lets say I have these linked pairs setup with subfolders:
c:\cars-stage
c:\cars-prod

TOP
c:\cars-stage\honda
c:\cars-stage\toyota
c:\cars-stage\ford

BOTTOM
c:\cars-prod\honda
c:\cars-prod\ford

If i select:
C;cars-stage\honda
I want:
c:\cars-prod\honda

If I select :
c:\cars-stage\toyota
I Want:
c:\cars-prod

The folder above should result since the c:\cars-prod\toyota directory doesn't exist yet.

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

Give it a try...

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.

Yes it does but if i have nav lock on, and i navigate to any folder that isn't paired I get this annoying popup on each click.

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.

This would require me to click the button. That's about the same thing as clicking on the folder name in pane 2.

I want the interface to just follow me to the 2nd pair if it can without clicking and without annoying popups if the 2nd pair doesn't exist.

How can i get automatic pairing without an annoying popup?

Click the arrows on the right of the pop-up to make it smaller, then just ignore it.

(Or use Lxp's script, above, which I think does exactly what you want.)

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).

3 Likes

Thanks fantastic! Thanks so much. I'll keep an eye out. :heart_eyes:

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.

Try this version, modified to lock after opening the paired folder.

Pair.dcf (1.6 KB)

@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));
}
1 Like

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.