As the title says, I've run into this issue.
I am trying to integrate WinMerge into TC according to the following task:
WinMerge has to compare only selected files in whatever panel (left or right) these selected files are located.
I will monitor the quantity myself to ensure that they do not exceed 3.
According to the documentation, the %S parameter should specifically only apply to selected files, i.e. files simply under the cursor should not fall under its effect.
So, at the beginning, according to the documentation:%S insert the names of all selected files into the command line. Names containing spaces will be surrounded by double quotes. Please note the maximum command line length of 32767 characters.
I tried the following command line parameters for WinMerge:%P%S insert the names of all selected files into the command line, with full path. Names containing spaces will be surrounded by double quotes. Do NOT put quotes around %P%S yourself!
Code: Select all
/u %P%S
OK. I tried another parameters with the additional %R parameter
%R like %S, but with selected names from the target panel
Code: Select all
/u %P%S %P%R
OK. I tried another approach with the %T parameter
%T inserts the current target path. Especially useful for packers.
Code: Select all
/u %P%S %T%R
BUT, if I want to compare selected files only from one panel (left or right) - it doesn't work as it should be.
Even if there are no selected files in one of the two panels, when I try to compare the selected files, somehow inexplicably the command line that is passed to WinMerge includes a file from the panel that had no selected files, but last time it was or is now under the cursor.
Can anyone explain why this is happening, and is there any way to accomplish the task mentioned at the beginning of my post?