Filters - a modest suggestion
Posted: Fri Jul 02, 2010 7:24 am
May I humbly suggest that (a) the syntax and resulting semantics for filtering is not very good, (b) why not use proper regular expressions - they are very powerful and easy to implement with an existing library (especially if the regular expression engine has non-greedy wildcards), or (c) use ant-like file name expressions.
What brought this to mind, was that it seems to be impossible to exclude all directories with name ".svn".
In Ant syntax that would be described by "**/.svn".
In Java regex it would be something like "\.\\(.*?)\\\.svn(.*?)\\([^\\]+)".
Of course I may just not understand your filter syntax -- if so please correct my mistake
The explanation given for the filter syntax is somewhat unclear. It says the following:
"Prefix filters with ':' for full path matching."
I can't figure out what that means, particularly if I look at the built-in filter called "Exclude source control" which is this:
*.bak,*.scc,*.taf,:*_svn*:*.svn*,:*\cvs\*
What is ":*.svn*" supposed to do? It does NOT for instance exclude relative paths that are displayed like these:
.\.svn\
.\codesourcery\.svn\
Regards, Tim
What brought this to mind, was that it seems to be impossible to exclude all directories with name ".svn".
In Ant syntax that would be described by "**/.svn".
In Java regex it would be something like "\.\\(.*?)\\\.svn(.*?)\\([^\\]+)".
Of course I may just not understand your filter syntax -- if so please correct my mistake

The explanation given for the filter syntax is somewhat unclear. It says the following:
"Prefix filters with ':' for full path matching."
I can't figure out what that means, particularly if I look at the built-in filter called "Exclude source control" which is this:
*.bak,*.scc,*.taf,:*_svn*:*.svn*,:*\cvs\*
What is ":*.svn*" supposed to do? It does NOT for instance exclude relative paths that are displayed like these:
.\.svn\
.\codesourcery\.svn\
Regards, Tim