On Mon, 10 May 2010 17:37:17 -0500
Terry Brown <[email protected]> wrote:

> But I think Matt's just trying to avoid directories called '.svn', so his 
> regex is correct.  I'll look into it.

Ok, poor documentation, and a broken example, fixed in leoSettings.leo now.

Directories are always wrapped in '/'.  So your target is "/.svn/" or "/.bzr/".

So the example should have read ^/\.bzr/$ and not just ^\.bzr$

I considered stripping the '/' before applying the pattern, but this way you 
can test for dirs and files differently.  If you want to hide both with one 
patter, use ^/?\.bzr/?$

But personally if some psychopath has created a *file* called .bzr, I'd like to 
know :-)

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to