eliben / pss

pss is a power-tool for searching inside source code files.
Other
327 stars 46 forks source link

Add "searchindex.js" to the default exclude list #27

Closed ncoghlan closed 9 years ago

ncoghlan commented 10 years ago

I mostly use pss to search CPython clones, and it frequently gets hits on the searchindex.js file generated by Sphinx.

Would it be worth adding "searchindex.js" to the default exclusion regexes?

Excluding it with "--nojs" is easy enough for my particular use case, but it wouldn't work so well for a web programming project that actually had also had real Javascript files to search.

eliben commented 10 years ago

I'd actually be reluctant to ignore a file with such an ordinary name. I could envision some real JS project having a file with this name. For your CPython needs --nojs is an easy solution. Another is to add the whole Sphinx-generated directory to --ignore-dir (this would work for JS projects too).