Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use content_inspector create to remove binaries from file picker #942

Conversation

EpocSquadron
Copy link
Contributor

This expands on #767 in the suggested way -- by pulling in some logic that sniffs the first kilobyte of a file for the type of file. I'm unsure what the impact of this is going to be on large codebases like say the linux kernel, but the hope is that filtering out much of the uneditable/binary file types by extension first (as in the previous pull request) will mitigate that.

If the approach is acceptable, I'll build on this pull request with commits adding further file extensions to exclude prior to the binary sniffing, as in the previous pull request.

@archseer
Copy link
Member

archseer commented Nov 1, 2021

Have you seen #939?

@EpocSquadron
Copy link
Contributor Author

I had not! I can close this in favor of the other if you like.

@EpocSquadron
Copy link
Contributor Author

Reviewed #939 in full, closing in favor of that as it looks much more robust.

@EpocSquadron EpocSquadron deleted the epocsquadron/filter-binary-in-file-picker branch November 1, 2021 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants