Re: Hints/help with Text Filters in Meld



Ok Kai, no problems :)

So far, I wasn't able to figure out a regex/trick to solve that... If I get something useful on this, I'll post to the list.

[]'s
Fábio


2013/10/31 Kai Willadsen <kai willadsen gmail com>

On Oct 16, 2013 1:42 AM, "Fabio Pasini" <fabio pasini gmail com> wrote:
>
> Hello there!
>
> I'm trying to create a text filter in Meld 1.8.0,  to make those 3 lines below be evaluated as the same thing:
>
> CREATE OR REPLACE TRIGGER "OWNER"."TRIGGER_NAME"
> CREATE OR REPLACE TRIGGER "TRIGGER_NAME"
> CREATE OR REPLACE TRIGGER TRIGGER_NAME
>
> Is that feasible through "Edit"> "Meld Preferences">"Text Filters" option?
>
> For those 3 lineas above:
> - OWNER and  TRIGGER_NAME can be any alphanumeric sequence;
> - the entire sequence  CREATE OR REPLACE TRIGGER  is case insensitive;
> - whitespaces can be spaces or tabs (or, if possible, the \s operator, as described in http://docs.python.org/2/howto/regex.html).
>
> I've already tried some patterns, but what I have done here is discarding too much stuff, and it is not generic enough. 
>
> By the way, we have 17 environments to keep in sync here, with several teams updating them... and MELD is really helpful to find out whats changing :) !  Thanks a lot for all your work, folks!

Sorry about the delayed response.

I can't see a way to easily solve that problem with a filter. Meld's filters just remove text, they don't let you alter it... Otherwise it might work out.

Enhancing the filter system is a long overdue job, and the filters themselves are very simple, but interactions with the comparison are nasty. However, I think that a replace-style filter would definitely be a sensible future project.

Cheers,
Kai




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]