gcmd-devel
[Top][All Lists]
Advanced

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

Re: [gcmd-dev] advrename


From: Michael
Subject: Re: [gcmd-dev] advrename
Date: Wed, 3 Feb 2010 00:37:33 +0100
User-agent: claws-mail.org

That's cool. 

Yes i know regexpr, but i didn't see the solution. Quite sophisticated IMHO.

I'm thinking about how to sell that to average users. I mean, it's totally ok 
to have regexpr alone, and require users to work it out or ask someone. And 
maybe there could be a educating gcmd advrename examples page online.

But still, wouldn't it be a plus if it could be eased for nords (non-nerds) 
however ?

Take, for example, that plus :) the analog case would be "([^\+]+)\+(.+)\." for 
file structure
 $Pattern1"+"$Pattern2".ext". Now i could store all the searches for all 
possible cases of that structure. But  easy if there would be a way to store 
just the above regexpr with a $variable instead, like
p1="_" and search for "([^$p1]+)$p1(.+)\." 

and when this would work, i could setup generic variables for the other parts 
like 
p2=([^$p1]+) and p3=(.+)\. and then go ahead and reuse that in the final search 
$p2$p1$p3 and then after storing i could reuse it as template. I could call it 
"Cut part to p1" and then just need to fill in p1 to reuse it for other any 
chars. Maybe the underlying advrename 'engine' could care for any escapes (\) 
too.

At this point, one needs to ask what is it good for anyway since it's even more 
complicated than the pure regexpr (besides that it requires completely new 
code) ? Well i think that such searches could be downloaded as templates from 
the website, and even nords would understand how to fill in just p1.

There could be much complex regexpr with a comprehensive title, in the download 
file, where users only need to fill in the actual characters, they don't need 
to create or understand the patterns.


ok, i can hear folks saying "no why nords will be nerds after using gcmd and 
that's a good thing!" ... actually, ([^and]+)and(.+)! -> \2 and i was always 
opting for a advanced users. So i lack the argument here. QED.

Apropos: You did not ask what mimetype .msv is :)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]