winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

FR: Command-line option to apply a specific pre-differ

Open Gitoffthelawn opened this issue 3 years ago • 4 comments

Looking at the documentation, I'm not seeing a command-line option to apply a specific pre-differ. Is this available, and if not, can it be added?

Specifically, I want to call WinMerge from a batch file to compare file1.txt to file2.txt, but only compare columns 5-14. I want to call the GUI WinMerge, because seeing the context of any changes is critical.

TIA.

Gitoffthelawn avatar Aug 28 '22 09:08 Gitoffthelawn

You can specify the prediffer plugin on the command line as follows

"C:\Program Files\WinMerge\WinMergeU.exe" file1.txt file2.txt /prediffer "IgnoreColumns 5-14"

sdottaka avatar Aug 28 '22 12:08 sdottaka

That looks great. Thanks. I'll give it a try. Does that need to be added to the docs, or did I simply miss it?

Gitoffthelawn avatar Aug 28 '22 12:08 Gitoffthelawn

I tested it. Works flawlessly. Thank you again.

Just let me know about the docs whenever you like. If they need updating, please advise if you would like me to update them, or if you prefer to do it.

Gitoffthelawn avatar Aug 28 '22 12:08 Gitoffthelawn

Pull requests are welcome.

https://github.com/WinMerge/winmerge/blob/master/Docs/Manual/EN/Command_line.xml

sdottaka avatar Aug 28 '22 13:08 sdottaka