summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-11-17 17:37:47 +0100
committertoonn <toonn@toonn.io>2019-11-17 17:37:47 +0100
commitd5af1caf2666482017785c0170d39ddeea727fea (patch)
tree378d4725a25a55289ef1cf47c15edae8a490a9a0 /ranger
parent4ff19f6c059fc0d477273304988dc6b7c0ee6320 (diff)
downloadranger-d5af1caf2666482017785c0170d39ddeea727fea.tar.gz
Refine custom mime types for rifle
Diffstat (limited to 'ranger')
-rw-r--r--ranger/data/mime.types29
1 files changed, 20 insertions, 9 deletions
diff --git a/ranger/data/mime.types b/ranger/data/mime.types
index abee11f6..880f19fd 100644
--- a/ranger/data/mime.types
+++ b/ranger/data/mime.types
@@ -8,24 +8,35 @@
 #  Mimetypes are used for colorschemes and the builtin filetype detection
 #  to execute files with the right program.
 #
+#  You can find the official list of Media Types assigned by IANA here,
+#  https://www.iana.org/assignments/media-types/media-types.xhtml
+#  We deviate from these in certain cases when formats lack an official type
+#  or the type is too generic, application/* for a video format for example.
+#  In such cases we try to adhere to what file(1) returns.
+#
 ###############################################################################
 
-audio/flac              flac
+audio/ape               ape   # [1]
+audio/flac              flac  # [1]
 audio/musepack          mpc mpp mp+
-audio/ogg               oga ogg spx opus
+audio/ogg               oga ogg spx
+audio/opus              opus  # [1][2]
 audio/wavpack           wv wvc
-audio/webm              weba
-audio/x-ape             ape
+audio/webm              weba  # [2]
 
-image/webp              webp
+image/webp              webp  # [2]
 
-video/mkv               mkv
-video/webm              webm
-video/flash             flv
+video/mkv               mkv   # [1]
+video/webm              webm  # [2]
+video/flv               flv   # [1]
 video/ogg               ogv ogm
 video/divx              div divx
 
-text/x-ruby             rb
+text/ruby               rb
 application/javascript  js
 
 application/djvu        djvu
+
+# [1]: Deviate from file(1) for `rifle` ergonomics.
+# [2]: Mozilla seems like a sensible soure to adhere to in some cases,
+#      https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types