regex filter for Winmerge

Main development forum.

regex filter for Winmerge

Postby gerundt » Wed May 05, 2010 6:38 am

Accidentally I find the regex filter for Winmerge project at SF.net:

project page wrote:This project contains a regular expression filter that can be applied at the prediffer level as well as unpacking level for winmerge. It is used to hide unimportant differences while making a comparison using Winmerge


website wrote:After spending too much time trying to understand how line filters work in WinMerge, I gave up and decided to write this plug-in so that I won't lose time again.
I'm sharing it for the community to gather feedbacks and improvements. I developed this overnight. Do not expect too much robustness. My feeling is it works.
If it doesn't for you, give me an example or post to forum. I'll try to improve this as I find time.

There are two plug-ins available for WinMerge. They enable you to filter unimportant text during comparison. There is a central rule file which is located
on your c:\ folder. (The folder is fixed as of this moment. We can fix this later).


http://regexfilterforw.sourceforge.net/
gerundt
Site Admin
 
Posts: 193
Joined: Wed Sep 24, 2008 8:47 am
Location: Germany

Re: regex filter for Winmerge

Postby kimmov » Wed May 05, 2010 7:41 am

Oh lord - written as plugin.
kimmov
 
Posts: 562
Joined: Thu Sep 11, 2008 8:51 pm
Location: Finland

Re: regex filter for Winmerge

Postby matthias1955 » Sat May 15, 2010 2:18 pm

i see nother option actually. we need to filter all lines..ok, thats slow
down the compare at all. line filter is not enough to ignore all condition
of c_comment. but we dont need as unpacker, just eneable prediff before
open folder compare.
maybe, we can offer something with regex, without a plugin, like we do for 7-zip.
matthias1955
 
Posts: 162
Joined: Wed Dec 17, 2008 1:55 pm

Re: regex filter for Winmerge

Postby kimmov » Sat May 15, 2010 2:30 pm

The fact is plugins will be disabled and removed. No question about that.

Filtering needs serious rethinking and new ideas.
kimmov
 
Posts: 562
Joined: Thu Sep 11, 2008 8:51 pm
Location: Finland

Re: regex filter for Winmerge

Postby matthias1955 » Sat May 22, 2010 3:04 pm

I tryed to compile:
I'm missing
#ifdef USE_XPRESSIVE
#include <boost/xpressive/xpressive.hpp>
#define REGEXVARIANT boost::xpressive::wsregex
#define REGEXMATCH boost::xpressive::smatch
#define REGEX_REPLACE boost::xpressive::regex_replace
also the regex file is missing.
matthias1955
 
Posts: 162
Joined: Wed Dec 17, 2008 1:55 pm


Return to Developers

Who is online

Users browsing this forum: No registered users and 4 guests

cron