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

Let users configure custom file type mappings #36

Open
sternenseemann opened this issue Jan 9, 2021 · 1 comment
Open

Let users configure custom file type mappings #36

sternenseemann opened this issue Jan 9, 2021 · 1 comment

Comments

@sternenseemann
Copy link
Owner

sternenseemann commented Jan 9, 2021

We have a map like this:

M.Map FilePath GopherFileType

The configuration option could look like this, allowing to override the mapping:

{
  "file-types": {
    "apng": "I"
  }
}

Also the default fallback should be configurable (currently File).

@sternenseemann sternenseemann added this to the 0.3.1.0 milestone Jan 9, 2021
@sternenseemann sternenseemann changed the title Use mime-types for filetype detection and/or let users configure custom file type mappings Let users configure custom file type mappings Jan 10, 2021
@hyperrealgopher
Copy link

https://github.com/hyperrealgopher/filesig

Just dropping this here in case it's useful.

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

No branches or pull requests

2 participants