Excluding binary files with "Find in Files"

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Kent Knox

Excluding binary files with "Find in Files"

Post 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
Ed

Re: Excluding binary files with "Find in Files"

Post 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
Kent Knox

Re: Excluding binary files with "Find in Files"

Post by Kent Knox »

Jimminy Cricket!
I feel pretty dumb :) Nothing keeps your Ego in check like an obvious blunder. Thanx for your help.
Charlie Hills

Re: Excluding binary files with "Find in Files"

Post 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.
Post Reply