ZTree.com  | ZTreeWiki  | ZEN  | ZEST  | About...  

 Index   Back

Tagging/untagging is most useful with Ctrl-Y, indeed   [Notice]

By: Martijn Coppoolse   Homepage   Voorburg, NL  
Date: Apr 01,2009 at 12:30
In Response to: Yes Spaces! (Oliver Pretzel)

Hi Olivr,

> Yes it was the spaces, I had match_(^0[^0].*) (where _ is just to
> emphasize the space).
> Without the space it worked.

Ah, I see. You can adjust the script if you want; changing line 22 of regexp.js:

	if (match = /^match\((.*)\)$/.exec(zbar.AssistCommand)) {
to
	if (match = /^match\s+(.*)$/.exec(zbar.AssistCommand)) {
means you won't have to type the parentheses anymore. They're a bit useless here anyway.

> I assume that the way the filter should be used is to tag all the files
> you are interested in and use Ctrl-Y to remove the ones that don't match.
> Using Y individually on a long list of files to add tags does not seem
> very practical...

Heh... No, it doesn't.

But I figured it wouldn't hurt to support single file operation as well, especially since it can be handy when testing a regex.

> Thanks for this utility, which promises to be very useful.

You're welcome!

And thanks to Kim, Ian and Microsoft, of course... ;-)


--
Martijn

363 views      
Thread locked
 

Messages in this Thread

 
82,793 Postings in 10,445 Threads, 196 registered users, 10 users online (0 registered, 10 guests)
Index | Admin contact |   Forum Time: Sep 8, 2010 - 6:40 pm CDT  |  Hits:5,285,312  (2,709 Today )
RSS Feed