WinMerge / winmerge

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
https://winmerge.org/
GNU General Public License v2.0
6.49k stars 801 forks source link

Support WinMerge file comparison between multiple Windows Explorer windows - Add a "select file for WinMerge comparison" in context menu #2386

Open tauheedul opened 3 months ago

tauheedul commented 3 months ago

Current behaviour It is currently possible to perform a WinMerge comparison of selected multiple files in Windows File Explorer...

image

Description of issue If the files are located in two separate active File Explorer windows or tabs, the right click to display the selected file context menu > WinMerge loads the path of first file to compare but requires the user specify the path of the 2nd file.

image

image

This is fine if you only have a couple of files to compare, but not practical for batch file comparison.

Suggested functionality In the Windows File Explorer, please add a WinMerge sub-context menu option... "Select file for WinMerge comparison" for the 1st selected file

Then if the user right clicks to select the 2nd file in a separate active Windows Explorer window, this would simply display the WinMerge context menu option and would directly load both files for comparison when clicked.

This would enable the ability to compare files between folders without needing to copy and paste the file paths individually or navigating for the file via the Browse button.

sdottaka commented 3 months ago

If you check the Options window → Shell Integration category → Enable advanced menu check box, the advanced menu is enabled and a WinMerge→Select Left menu item appears in the Explorer context menu. Selecting this does not start WinMerge immediately. If you then display the context menu again in another Explorer window and choose the WinMerge→Compare menu item, WinMerge will start and compare the selected files or folders.

image image image

tauheedul commented 3 months ago

@sdottaka Thank you, this worked! Please can this feature be enabled by default for standard installations in future versions? It seems like a basic feature other diff tools have switched on by default.