Excluding file types in Eclipse / Aptana find in files search

EclipseEditorAptana

Eclipse Problem Overview


Is there a way to exclude say, image types in Aptana or Eclipse file search? I want to search all files that are not images rather than specifying all the file types that I want to search in.

Eclipse Solutions


Solution 1 - Eclipse

Try putting an '!' mark in front of the pattern you don't want to match - putting

!*.cgi, !*.pm, !*.sql

in the File name patterns section is doing the job in a test I'm doing with Eclipse 3.4.1 (when the pattern was just * there was a file of each type, with that pattern, it is only returning js and pl files).

I was afraid that it would be a bit naive with the patterns and just allow anything that matched one of them to succeed (ie an sql file would match !*.cgi), but this doesn't seem to be the case.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiondeadprogrammerView Question on Stackoverflow
Solution 1 - EclipseCebjyreView Answer on Stackoverflow