-
Notifications
You must be signed in to change notification settings - Fork 102
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
Content-based filetype detection #726
Comments
Concerns for each of these:
This will be important for cases like rust-lang/rfcs#3424 Specifically for shebangs, we'd need to decide how to parse the various cases (whether |
Forgot to add, We also need to weigh out the costs of this since this can lead to extra IO |
It seems file type detection is based on only the file (base)name and its extension.
Would be nice to improve on that some and peek into the file content, and take into account for example
-*- something -*-
embedded configs(ditto for
vi:` at least)I imagine something like https:/ebassi/xdg-mime-rs could be useful at least for the two first items in the above list.
The text was updated successfully, but these errors were encountered: