chmln / handlr

A better xdg-utils
MIT License
633 stars 25 forks source link

Base mime on file extension not on contents #70

Closed DUOLabs333 closed 1 year ago

DUOLabs333 commented 1 year ago

Right now, the crate uses the contents of the file to determine mime, similar to the command file. However, it should base it on solely the file extension, like xdg-*.

Right now, if you make an empty file, eg. touch test.txt, then try handlr open test.txt, it will fail with no handlers found for 'application/x-zerosize'.

DUOLabs333 commented 1 year ago

This was implemented here: https://github.com/Anomalocaridid/handlr-regex