Hide identical filenames on both sides of a lister

To hide files and folders with the same names on left and right:

JScript:

function OnClick(clickData)
{
	var cmdSource = clickData.func.command;
	cmdSource.ClearFiles();

	var cmdDest = DOpus.create.command;
	cmdDest.SetSourceTab(clickData.func.desttab);

	cmdSource.RunCommand("Select DESELECTNOMATCH SOURCETODEST=in");
	cmdDest.RunCommand("Select DESELECTNOMATCH SOURCETODEST=in");
	cmdSource.RunCommand("Select NOPATTERN HIDESEL");
	cmdDest.RunCommand("Select NOPATTERN HIDESEL");
}

To stop hiding things and return to normal:

JScript:

function OnClick(clickData)
{
	var cmdSource = clickData.func.command;
	cmdSource.ClearFiles();

	var cmdDest = DOpus.create.command;
	cmdDest.SetSourceTab(clickData.func.desttab);

	cmdSource.RunCommand("Select NOPATTERN SHOWHIDDEN");
	cmdDest.RunCommand("Select NOPATTERN SHOWHIDDEN");
}