Far-fetched:
Why not skip the mime-types altogether and use the file command, piped?
E.g.:
file (the command) file (the data) | grep something distinctive the file command says
about the data file > result file
Then this result is paired with a list of players or editors, and we load the data file with
this "executioner".
As I said, far-fetched.
~~~~~~~~~~~~~~~~~~
As for the right-click for text, I don't remember using it. (Maybe when I was a newbie.)
Actually, I don't have a need for it any more.
In a ROX window, I double-click on a text file, and it opens in the text viewer.
Now my text viewer is (the real) less, and (the real) less can be scripted to pass the
text to an editor if it needs to be edited. Doing it like this is intentional: by changing the
application, you keep your brain on alert and notice more errors if there are any. (Basics
of psychology of perception: the brain tires easily, has a short attention span, and is
refreshed by a change of environment.)
Also less has an hex mode it can switch to (after a warning) if the content of the file
is not text. This is sometimes handy with files that look weird. Most data files have a
2-3 bytes header that identifies their type: archive, C code, png, and so on.
BFN.