Compare by contents with multiple files selected at least in one panel
Posted: 2024-10-04, 15:28 UTC
When multiple files are marked in one of the panels (i.e more than 1), it would be nice if cm_CompareFilesByContent did not compare the first selected file in both panels. IMO, most of the time it's not useful (especially after executing cm_CompareDirs).
It would be better if it first checked if the selected file in the active panel (the one on which the cursor is placed) exists in the other panel and if so, compare those two files ignoring what is selected in both panels.
For instance, in this image, it should try to compare "File 2" in both panels, not "File 1" with "File 4" as done today.
If only one file is selected in each of the panels, it should works as today, compare those two selected files.
If two files are selected in one of the panels and none in the other, it should compare those two selected files.
If two files are selected in one of the panels and at least one in the other, it should work as proposed in this post.
A new INI option could be added that would change the way things work between what exists today and what is proposed above.
It would be better if it first checked if the selected file in the active panel (the one on which the cursor is placed) exists in the other panel and if so, compare those two files ignoring what is selected in both panels.
For instance, in this image, it should try to compare "File 2" in both panels, not "File 1" with "File 4" as done today.
If only one file is selected in each of the panels, it should works as today, compare those two selected files.
If two files are selected in one of the panels and none in the other, it should compare those two selected files.
If two files are selected in one of the panels and at least one in the other, it should work as proposed in this post.
A new INI option could be added that would change the way things work between what exists today and what is proposed above.