You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like in xdg-mime query filetype some-video.webm displaying video/webm, parameters could be -M video, -m webm or something.
Would that be possible? I quess it would hurt performance.
I was always wondering, Linux Desktop is mimetype based first, file extension second. But the good old command line tools are always string only.
Have missed this feature often in find.
The text was updated successfully, but these errors were encountered:
I'm looking to make some contributions, is this a feature that makes sense for fd? (I understand it's not trying to be a complete find replacement).
There are a couple of different approaches to listing the mime type discussed here: bojand/infer#24
I've got an example implementation that would use first attempt to get the mimetype using infer (magic number), and then falling back to the file extension database using mime_guess: xweskingx@8400b88
Like in
xdg-mime query filetype some-video.webm
displayingvideo/webm
, parameters could be-M video
,-m webm
or something.Would that be possible? I quess it would hurt performance.
I was always wondering, Linux Desktop is mimetype based first, file extension second. But the good old command line tools are always string only.
Have missed this feature often in
find
.The text was updated successfully, but these errors were encountered: