Having installed a new Ubuntu VM (for testing purposes) I was looking for visual diff tool with nice UI integration.
Windows users: think of WinMerge being launched by selecting two files in Explorer and compare them from the context menu.
This is what I came up with:
Install Meld – a visual diff tool:
sudo apt-get install meld
To be able to launch Meld from the file browsers context menu install “Nautilus Actions” (Nautilus is the name of the Ubuntu file browser). Nautilus Actions is an extension to add custom entries to the context menu.
To install it type:
sudo apt-get install nautilus-actions
Launch it from System -> Settings -> Nautilus Actions
and add a new action with these settings:
- Label: Compare
- Icon: /usr/share/pixmaps/meld.png
- Path: /usr/bin/meld
- Parameters: %M
- Conditions tab: Group “Appears if selection contains” select “Both”
- check “Appears if selection has multiple files or folders”
Restart the file browser:
Then you can select two files, right click, and select “Compare” and Meld will show you the differences between the selected files.