-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add more common filetypes #9
Comments
I'm interested. |
Hi Kayvan. The only preference I have right now is: lowercase, and use underscores instead of spaces. |
- Add some additional filetypes (issue #9)
I'm considering contributing a PR that will hook up the mimetypes module to your rules. Would you be interested in such functionality, or would you prefer more manually-curated file types? |
Hi Stefan, Thanks for your interest in the project! Hooking up the mimetypes module will be better than the current default behaviour, which is to move Ideally I would like to group various mimetypes under a common banner, for example You can look in the filetypes.py file, near the end of the RULES dictionary, there are two default entries -- one for files and one for directories. Yours should be inserted right before the current default file behaviour. |
Ref chriscz#9 Adds MIME type mappings from the mimetype module as fallback rules when no other rule can be matched. Also attempts to slightly humanize MIME types by removing x- from types.
Thanks for the quick reply! I hope the PR is to your liking, of course feel free to discard / edit any of my changes to make it fit into your project's vision better. |
The current filetypes.txt contains some really archaic types. Consider updating it to contain
more filetype definitions.
The text was updated successfully, but these errors were encountered: