code-google-com / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

File Filters from Find dialog not working with filenames for directory search #808

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Edit-->Find

2.Enter text to search for in the Find What: box. e.g. battdrvr_mdd

3.Enter the filenames you want to do the searches in,
e.g. sources makefile

4.Browse for the directory to search in the Look in: box, by selecting ...
e.g. public

5.Click on Find All.

What is the expected output? What do you see instead?
I expected to see numerous files listed, but no files are found that contain 
the string, even though I know there are files that contain the string in the 
directory listed. 
The output is:
>>> Search Started: "battdrvr_mdd" [ regex: off; match case: off; whole word: 
off; ]
>>> Search Complete: 0 matching lines where found.  Files Searched: 0

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?
Editra version: 0.7.20
OS: Windows 7 Professional 32 bit Service Pack 1

What method of install was your version installed with (Binary/Source)?
Binary install

If from source: What version of python and wxPython are you using?
Not applicable

Please provide any additional information below.

Original issue reported on code.google.com by bagley.s...@gmail.com on 22 Aug 2013 at 3:57

GoogleCodeExporter commented 9 years ago
The file filter field expects a wildcard search pattern. The pattern matching 
is done off of the absolute path of each file that the search finds as it 
re-curses through the directories.

If you put a * in front of each then the pattern matching will work.

i.e)
*sources *makefile

Please let me know if this resolves your issue

Original comment by CodyPrec...@gmail.com on 22 Aug 2013 at 8:56

GoogleCodeExporter commented 9 years ago
Thanks. Yes, putting a * in front of each of the filenames worked.

Original comment by bagley.s...@gmail.com on 23 Aug 2013 at 8:43