Skip to content

feat: use mimetype to determine filetype in linux #1073

@Rid1FZ

Description

@Rid1FZ

As far as I noticed, eza uses some sort of regex or file extension to determine filetype. But it is very common in linux to fully avoid extension for any script for example. In that cases, eza shows default icon for that file (which is incorrect). Is it possible to use mimetype instead for filetype detectiom in linux? Mimetype of any file is detected by reading the file instead of using anything like regex. It helps to determine filetype more precisely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions