On Tue, 2 Mar 2010 07:46:20 -0800 (PST)
tfer <[email protected]> wrote:
> @data active_path_ignore = [<re_pattern>, <re_pattern>, ...]
> Hm, can this filter out directories or only files?
Here's what I've just added to the docstring
There are @settings for ignoring directory entries and automatically loading
files. ``re.search`` is used, rather than ``re.match``, so patterns need only
match part of the file or directry name.
The body of the @setting `...@data active_path_ignore`` is a list of regex
patterns, one per line. Directory entries matching any pattern in the list
will be ignored. The names of directories used for matching will have forward
slashes around them ('/dirname/'), so patterns can use this to distinguish
between directories and files.
The body of the @setting `...@data active_path_autoload`` is a list of regex
patterns, one per line. File entries matching any pattern in the list will be
loaded automatically. This works only with files, not directories (but you can
load directories recursively anyway).
> @data active_path_autoload = ["*.py", ...]
> okay, I realize we are talking regexes here, not file globing, but
> python regex's aren't where I dealt with this before, I'll have to hit
> the manuals.
A regex for .py files would be '.*\.py$'
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.