--- a/src/sampleconf/mimeview.mac
+++ b/src/sampleconf/mimeview.mac
@@ -29,12 +29,18 @@
# opening them as html documents:
#text/html|epub = ebook-viewer %F;ignoreipath=1
+application/x-gnote = gnote %f
+
application/x-mobipocket-ebook = ebook-viewer %f
application/x-kword = kword %f
application/x-abiword = abiword %f
+# Note: the Linux Mint evince clones, atril and xread, have the same options
application/pdf = evince --page-index=%p --find=%s %f
+# Or:
+#application/pdf = qpdfview --search %s %f#%p
+
application/postscript = evince --page-index=%p --find=%s %f
application/x-dvi = evince --page-index=%p --find=%s %f
@@ -74,9 +80,19 @@
application/vnd.wordperfect = libreoffice %f
text/rtf = libreoffice %f
-application/x-chm = kchmviewer %f
application/x-dia-diagram = dia %f
+
application/x-fsdirectory = dolphin %f
+inode/directory = dolphin %f
+
+# Both dolphin and nautilus can pre-select a file inside a
+# directory. Thunar can't afaik. xdg-open cant pass an additional
+# parameters so these are to be xallexcepts.
+application/x-fsdirectory|parentopen = dolphin --select %(childurl) %f
+inode/directory|parentopen = dolphin --select %(childurl) %f
+#application/x-fsdirectory|parentopen = nautilus %(childurl)
+#inode/directory|parentopen = nautilus %(childurl)
+
application/x-gnuinfo = xterm -e "info -f %f"
application/x-gnumeric = gnumeric %f
@@ -95,8 +111,25 @@
image/bmp = gwenview %f
image/x-ms-bmp = gwenview %f
image/x-xpmi = gwenview %f
+image/x-nikon-nef = ufraw %f
+# Opening mail messages:
+# - Thunderbird will only open a single-message file if it has an .eml
+# extension
+# - "sylpheed %f" seems to work ok as of version 3.3
+# - "kmail --view %u" works
+# - claws-mail: works using a small intermediary shell-script, which you
+# set as the viewer here. You need to have at least one account inside
+# claws-mail, so that it creates ~/Mail/inbox. Script contents example
+# follows. Using 1 is probably not a good idea if this is a real account
+# (here I am using a bogus one, so that I can overwrite anything inside
+# inbox at will):
+# #!/bin/bash
+# cp $1 ~/Mail/inbox/1
+# claws-mail --select ~/Mail/inbox/1
+# rm ~/Mail/inbox/1
message/rfc822 = thunderbird -file %f
+
text/x-mail = thunderbird -file %f
application/x-mimehtml = thunderbird -file %f
@@ -138,6 +171,7 @@
text/x-html-sidux-man = konqueror %f
text/x-html-aptosid-man = iceweasel %f
+application/x-chm = kchmviewer %f
# Html pages inside a chm have a chm rclaptg set by the filter. Kchmviewer
# knows how to use the ipath (which is the internal chm path) to open the
# file at the right place