Page 1 of 1

Excluding binary files with "Find in Files"

Posted: Mon Sep 09, 2002 8:30 pm
by Kent Knox
I've tried to look in the forums for an answer to this question, but I didn't see any. I am a developer, and I like to use textpad for my development, especially the find in files feature to scan through loads of code. All I want it to do is to look for certain strings in text files, but it always scans through my .pdb and .lib and .obj binary files, which corrupts my search results with all this useless data. The "find in files" dialog box has a checkmark that says "binary files", but I can't figure out how to tell textpad that *.pch, *.lib, and *.obj files are binary files and NOT to search through them. I've updated the Document classes preferences menu in my options, and even though I've added those file types to my Binary files Document classes, it still searches through them. Can anybody help? Thanks in advance

Kent

Re: Excluding binary files with "Find in Files"

Posted: Tue Sep 10, 2002 4:46 am
by Ed
You need to specify file extensions that you want to search in the "Find in Files" dialogue box.
Thus for my normal searches I have in the box marked "In Files"
*.h *.c *.cpp

Re: Excluding binary files with "Find in Files"

Posted: Tue Sep 10, 2002 7:31 pm
by Kent Knox
Jimminy Cricket!
I feel pretty dumb :) Nothing keeps your Ego in check like an obvious blunder. Thanx for your help.

Re: Excluding binary files with "Find in Files"

Posted: Tue Oct 15, 2002 5:31 pm
by Charlie Hills
I know I'm coming in late to the discussion, but I think it would be nice if Find in Files could somehow be tied into the list of Binary document class. I quite often do full-code sweeps where I'm looking for a particular bit of code, yet don't want to bother with binary files, and also don't want to have to think of every possible file extension before starting. Search *.* excluding binary might be nice. I'm glad I came across this thread: at least I see I'm not the only one who's run across this.