Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Review fixes https://github.com/adobe/brackets/pull/4382 #4442

Merged

Conversation

shevchuk
Copy link
Contributor

@peterflynn here is a fix for you comments in #4382

@ghost ghost assigned peterflynn Jul 12, 2013
@njx
Copy link

njx commented Jul 15, 2013

Hi @shevchuk -- just FYI, in the future you can just push new commits up to the same branch and they'll get automatically included in the original pull request--no need to close it and reopen a new one. Thanks.

@shevchuk
Copy link
Contributor Author

Hi @njx, sorry, will absolutely follow your advice.

@njx
Copy link

njx commented Jul 15, 2013

No problem, thanks again for working on this.

* File names which are not showed in quick open dialog
* @type {RegExp}
*/
var _binaryExclusionListRegEx = /\.svgz$|^\.jsz$|^\.zip$|^\.gz$|^\.htmz$|^\.htmlz$|^\.rar$|^\.tar$|^\.exe$|^\.bin$/;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't want the ^s here -- that means only ".zip" will match, not "foo.zip". The only reason the _exclusionListRegEx uses ^ is because it really is filtering out exact names in those cases (e.g. ".svn" isn't an extension, it's a complete folder name).

@peterflynn
Copy link
Member

@shevchuk just two more comments (see above) and then we can merge

@shevchuk
Copy link
Contributor Author

@peterflynn thanks for pointing to that place that makes indices.

@shevchuk
Copy link
Contributor Author

@peterflynn finished, please review last commit

@peterflynn
Copy link
Member

Thanks @shevchuk, looks good! Merging now...

peterflynn added a commit that referenced this pull request Jul 22, 2013
…view-1

Exclude certain known binary files types from FileIndexManager (and thus Quick Open, Find in Files, etc.)
@peterflynn peterflynn merged commit 12bbef8 into adobe:master Jul 22, 2013
@peterflynn
Copy link
Member

Note: this is related to the larger user story for excluding things from search in general.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants