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.15k stars 784 forks source link

Make it possible to transform the text copied with "Copy Right/Left" using a plugin. #2238

Closed sdottaka closed 4 months ago

sdottaka commented 4 months ago

For this PR, when you click the "Copy to Right/Left" icon, you can transform the selected difference using the Editor script plugin and copy it to another pane.

For example, you can use the "Replace" plugin to replace one string in the difference with another string and copy the result to another pane.

Select the plugin in Plugin → Scripts for copying → Scripts menu, select the difference, and click the "Copy to Right/Left" icon to copy the difference transformed by the plugin to another pane.

image