Switch to unified view

a/src/sampleconf/mimeview.mac b/src/sampleconf/mimeview.mac
1
# @(#$Id: mimeview,v 1.16 2008-09-15 08:03:37 dockes Exp $  (C) 2004 J.F.Dockes
1
# @(#$Id: mimeview,v 1.16 2008-09-15 08:03:37 dockes Exp $  (C) 2004 J.F.Dockes
2
2
3
## ##########################################
3
## ##########################################
4
# External viewers, launched by the recoll GUI when you click on a result
4
# External viewers, launched by the recoll GUI when you click on a result
5
# 'Open' link - MAC version
5
# 'Open' link - MAC version
6
# On the MAC, we basically use "open" for everything...
6
# On the MAC, we use "open" for everything...
7
7
8
# Mime types which we should not uncompress if they are found gzipped or
8
# Mime types which we should not uncompress if they are found gzipped or
9
# bzipped because the native viewer knows how to handle. These would be
9
# bzipped because the native viewer knows how to handle. These would be
10
# exceptions and the list is normally empty
10
# exceptions and the list is normally empty
11
#nouncompforviewmts = 
11
#nouncompforviewmts = 
12
12
13
# For releases 1.18 and later: exceptions when using the x-all entry: these
14
# types will use their local definition. This is useful, e.g.: 
15
#
16
#  - for pdf, where we can pass additional parameters like page to open and
17
#    search string
18
#  - For pages of CHM and EPUB documents where we can choose to open the 
19
#    parent document instead of a temporary html file.
20
#xallexcepts = application/pdf application/postscript application/x-dvi \
21
#            text/html|gnuinfo text/html|chm text/html|epub
22
13
[view]
23
[view]
14
# Pseudo entry used if the 'use desktop' preference is set in the GUI
24
# Pseudo entry used if the 'use desktop' preference is set in the GUI
15
application/x-all = open %f
25
application/x-all = open %f
16
26
27
application/epub+zip = ebook-viewer %f
28
# If you want to open the parent epub document for epub parts instead of
29
# opening them as html documents:
30
#text/html|epub = ebook-viewer %F;ignoreipath=1
31
32
application/x-mobipocket-ebook = ebook-viewer %f
33
17
application/x-kword = kword %f
34
application/x-kword = kword %f
18
application/x-abiword = abiword %f
35
application/x-abiword = abiword %f
19
36
20
application/pdf  = open %f
37
application/pdf  = evince --page-index=%p --find=%s %f
21
application/postscript = open %f
38
application/postscript = evince --page-index=%p --find=%s %f
22
application/x-dvi = open %f
39
application/x-dvi = evince --page-index=%p --find=%s  %f
23
40
24
application/x-lyx = lyx %f
41
application/x-lyx = lyx %f
25
application/x-scribus = scribus %f
42
application/x-scribus = scribus %f
26
43
27
application/msword = open %f
44
application/msword = libreoffice %f
28
application/vnd.ms-excel = open %f
45
application/vnd.ms-excel = libreoffice %f
29
application/vnd.ms-powerpoint = open %f
46
application/vnd.ms-powerpoint = libreoffice %f
47
48
application/vnd.oasis.opendocument.text = libreoffice %f
49
application/vnd.oasis.opendocument.presentation = libreoffice %f
50
application/vnd.oasis.opendocument.spreadsheet = libreoffice %f
30
51
31
application/vnd.openxmlformats-officedocument.wordprocessingml.document = \
52
application/vnd.openxmlformats-officedocument.wordprocessingml.document = \
32
 open %f
53
 libreoffice %f
33
application/vnd.openxmlformats-officedocument.wordprocessingml.template = \
54
application/vnd.openxmlformats-officedocument.wordprocessingml.template = \
34
 open %f
55
 libreoffice %f
35
application/vnd.openxmlformats-officedocument.presentationml.template = \
56
application/vnd.openxmlformats-officedocument.presentationml.template = \
36
 open %f
57
 libreoffice %f
37
application/vnd.openxmlformats-officedocument.presentationml.presentation = \
58
application/vnd.openxmlformats-officedocument.presentationml.presentation = \
38
 open %f
59
 libreoffice %f
39
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet = \
60
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet = \
40
 open %f
61
 libreoffice %f
41
application/vnd.openxmlformats-officedocument.spreadsheetml.template =\
62
application/vnd.openxmlformats-officedocument.spreadsheetml.template =\
42
 open %f
63
 libreoffice %f
43
application/vnd.sun.xml.calc = open %f
64
application/vnd.sun.xml.calc = libreoffice %f
44
application/vnd.sun.xml.calc.template = open %f
65
application/vnd.sun.xml.calc.template = libreoffice %f
45
application/vnd.sun.xml.draw = open %f
66
application/vnd.sun.xml.draw = libreoffice %f
46
application/vnd.sun.xml.draw.template = open %f
67
application/vnd.sun.xml.draw.template = libreoffice %f
47
application/vnd.sun.xml.impress = open %f
68
application/vnd.sun.xml.impress = libreoffice %f
48
application/vnd.sun.xml.impress.template = open %f
69
application/vnd.sun.xml.impress.template = libreoffice %f
49
application/vnd.sun.xml.math = open %f
70
application/vnd.sun.xml.math = libreoffice %f
50
application/vnd.sun.xml.writer = open %f
71
application/vnd.sun.xml.writer = libreoffice %f
51
application/vnd.sun.xml.writer.global = open %f
72
application/vnd.sun.xml.writer.global = libreoffice %f
52
application/vnd.sun.xml.writer.template = open %f
73
application/vnd.sun.xml.writer.template = libreoffice %f
53
application/vnd.wordperfect = open %f
74
application/vnd.wordperfect = libreoffice %f
75
text/rtf = libreoffice %f
54
76
55
application/x-chm = kchmviewer %f
77
application/x-chm = kchmviewer %f
56
application/x-dia-diagram = dia %f
78
application/x-dia-diagram = dia %f
57
application/x-fsdirectory = open %f
79
application/x-fsdirectory = dolphin %f
58
application/x-gnuinfo = xterm -e "info -f %f"
80
application/x-gnuinfo = xterm -e "info -f %f"
59
application/x-gnumeric = gnumeric %f
81
application/x-gnumeric = gnumeric %f
60
82
61
application/x-flac = open %f
83
application/x-flac = rhythmbox %f
62
audio/mpeg = open %f
84
audio/mpeg = rhythmbox %f
63
application/ogg = open %f
85
application/ogg = rhythmbox %f
86
audio/x-karaoke = kmid %f
64
87
65
image/jpeg = open %f
88
image/jpeg = gwenview %f
66
image/png = open %f
89
image/png = gwenview %f
67
image/tiff = open %f
90
image/tiff = gwenview %f
68
image/gif  = open %f
91
image/gif  = gwenview %f
69
image/svg+xml = open %f
92
image/svg+xml = inkview %f
70
image/vnd.djvu = open %f
93
image/vnd.djvu = djview %f
71
image/x-xcf = open %f
94
image/x-xcf = gimp %f
72
image/bmp = open %f
95
image/bmp = gwenview %f
73
image/x-ms-bmp = open %f
96
image/x-ms-bmp = gwenview %f
74
image/x-xpmi = open %f
97
image/x-xpmi = gwenview %f
75
98
76
message/rfc822 = thunderbird -file %f
99
message/rfc822 = thunderbird -file %f
77
text/x-mail = thunderbird -file %f
100
text/x-mail = thunderbird -file %f
101
application/x-mimehtml = thunderbird -file %f
78
102
103
text/calendar = evolution %f
104
105
application/x-okular-notes = okular %f
106
107
application/x-rar = ark %f
79
application/x-tex = open %f
108
application/x-tar = ark %f
80
text/x-tex = open %f
109
application/zip = ark %f
110
111
application/x-awk = emacsclient  %f
112
application/x-perl = emacsclient  %f
113
text/x-perl = emacsclient  %f
114
application/x-shellscript = emacsclient  %f
115
text/x-shellscript = emacsclient  %f
116
117
# Or firefox -remote "openFile(%u)"
81
text/html = open %u
118
text/html = firefox %u
119
120
# gnu info nodes are translated to html with a "gnuinfo"
121
# rclaptg. rclshowinfo knows how to start the info command on the right
122
# node
82
text/html|gnuinfo = rclshowinfo %F %(title)
123
text/html|gnuinfo = rclshowinfo %F %(title);ignoreipath=1
124
125
application/x-webarchive = konqueror %f
126
text/x-fictionbook = ebook-viewer %f
127
application/x-tex = emacsclient  %f
128
application/xml = emacsclient  %f
129
text/xml = emacsclient  %f
130
text/x-tex = emacsclient  %f
83
text/plain = open %f
131
text/plain = emacsclient  %f
84
text/x-c = open %f
132
text/x-awk = emacsclient  %f
133
text/x-c = emacsclient  %f
85
text/x-c+ = open %f
134
text/x-c+ = emacsclient  %f
86
text/x-c++ = open %f
135
text/x-c++ = emacsclient  %f
87
text/x-chm-html = openchm %f %i
136
text/x-csv = libreoffice %f
137
text/x-html-sidux-man = konqueror %f
138
text/x-html-aptosid-man = iceweasel %f
139
140
# Html pages inside a chm have a chm rclaptg set by the filter. Kchmviewer
141
# knows how to use the ipath (which is the internal chm path) to open the
142
# file at the right place
143
text/html|chm = kchmviewer --url %i %F
144
88
text/x-ini = open  %f
145
text/x-ini = emacsclient %f
89
#text/x-man = xterm -u8 -e "groff -T ascii -man %f | more"
146
text/x-man = xterm -u8 -e "groff -T ascii -man %f | more"
90
text/x-python = idle %f
147
text/x-python = idle %f
148
text/x-gaim-log = emacsclient  %f
149
text/x-purple-html-log = emacsclient  %f
150
text/x-purple-log = emacsclient  %f