johnturek / advanced-find

Automatically exported from code.google.com/p/advanced-find
0 stars 0 forks source link

Feature request: Allow multiple file patterns #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I often search among files with multiple extensions, for example, .py, .rb, 
.html, .css, .js, ......

Currently, you are using:
if fnmatch.fnmatch(file_path, unicode(file_pattern, 'utf-8')):

This can only allow one type of file pattern. So I have to do multiple finds, 
each with one extension type. Obviously, this is very inconvenient.

Could you please add a feature to allow multiple file patterns to be specified?

As:
*.py, *.rb, *.html, *.css, *.js, *.haml, *.txt

I can modify the code on my machine to add this feature. However, I don't know 
how to cooperate using Google code. 

If you don't mind, I can create a repository for this plugin at Github. I know 
how people can cooperate there ;-)

Thank you very much.

Original issue reported on code.google.com by neng2....@gmail.com on 7 Jul 2011 at 10:47

GoogleCodeExporter commented 9 years ago
1. This feature is added at v3.0.0beta2 and v2.0.0. Now you can search for 
multiple file patterns, just use '|' to separate them. For example, 
'*.py|*.txt' will search in all .py and .txt files in directory. 

2. You can do anything you want under GPLv2 without asking me.

Original comment by swatch.c...@gmail.com on 10 Jul 2011 at 1:33