forked from doublecmd/doublecmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doublecmd.ext.example
314 lines (262 loc) · 6.36 KB
/
doublecmd.ext.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
# Double Commander extension file
# Based on Midnight Commander 3.0 extension file
#
# All lines starting with # or empty lines are thrown away.
# All actions for file is showed in "Actions" submenu of file context popup menu
#
# File format:
#
# [extension1|extension2|...|extensionX]
# Name=Category name
# Icon=Path to icon
# action1=command1
# action2=command2
# actionX=commandX
#
# Where:
#
# [extension] or [extension1|extension2 ...] - list of extensions (case insensitive !!no regular expression!!)
# Also you can use "default" keyword as extension. In this case, if command had not found for sought file type,
# then will be used command from this section.
#
# Name - Name of this category (showed in file association manager)
#
# Icon - Path to icon that displays for this file types in file panel
#
# Action can be:
# Open - used with tap on Enter or DblClick
# View - used with tap on F3
# Edit - used with tap on F4
# other actions only is showed in "Actions" submenu of file context popup menu
#
# Command is any one-line shell command, with the simple macro substitution.
#
# Macros should be (case sensitive):
# {!VFS} - for archives - use virtual file system
# {!EDITOR} - call editor (internal or external by configuration}
# {!VIEWER} - call viewer (the same)
# {!SHELL} - use shell from configuration to execute program (see mplayer)
# <?command?> - execute 'command' in system shell and save stdout output to file and transfer it as parameter to previous command (see rpm for example...)
# %f - filename
# %d - directory
# %p - path(directory+filename)
# Default commands
[default]
Open=xdg-open %p
### Sources ###
# C
[c]
Open={!EDITOR} %p
Compile={!SHELL} cc -O -c %f
#Link={!SHELL} cc -O -o %d/`basename %f .c` %f
# Fortran
[f]
Open={!EDITOR} %p
Compile={!SHELL} f77 -O -c %f
Compile and Link={!SHELL} f77 -O %f
# Pascal and Object Pascal :)
[dpr|pas|pp]
Open={!EDITOR} %p
#Compile={!SHELL} fpc %p
# Asm
[s]
Open={!EDITOR} %p
Assemble={!SHELL} cc -O -c %f
#Link={!SHELL} cc -O -o %d/`basename %f .s` %f
# C++
[C|c|cc]
Open={!EDITOR} %p
Compile={!SHELL} c++ -O -c %f
#Link={!SHELL} c++ -O -o %d/`basename %f .c` %f
### Documentation ###
# GNU Info page
[info]
Open={!SHELL} info -f %f
# Manual page
[man]
Open={!SHELL} nroff -Tlatin2 -mandoc %f | less
View={!SHELL} nroff -Tlatin2 -mandoc %f
### Sound files ###
[wav|WAV|Wav|snd|SND|Snd|voc|VOC|Voc|au|AU|Au]
Open={!SHELL} play %f
[mod|s3m|xm]
Open=xmms %f
#Open=mikmod %f
#Open=tracker %f
[mp3]
Open=xmms %p
View=mpg123 -tn1 %f 2>&1|grep -E '^(Title|Album|Comment|MPEG|$)'
### Multimedia ###
[mpg|mpeg|avi|asf|mov]
Open=totem %p
#Open=xanim %f
#Open=aviplay %f
#Open=mtv %f 2>/dev/null&
#Open=gtv %f 2>/dev/null&
#Open=plaympeg %f 2>/dev/null&
#Open=mpeg_play %f &
#Open(big)=mpeg_play -dither 2x2 %f &
#Open(gray)=mpeg_play -dither gray %f &
[rm|ram]
Open={!SHELL} mplayer %f
#Open=realplay %f&
### Documents ###
# Postscript
[ps]
Open=gv %f
View=ps2ascii %f
View with GhostView=gv %f
# PDF
[pdf]
Open=xpdf %f
#Open=acroread %f
#Open=ghostview %f
View=pdftotext %f
# html
[html|htm|mht]
Open=opera %p
#Open=mozilla %p
View=lynx -dump -force_html %p
#txt
[txt]
Open={!EDITOR} %p
# StarOffice and OpenOffice
[sdw]
Open=soffice %f
# Open Document Format
[odt|ods|odp]
Name=Open Document Format
View={!VIEWER} <?odt2txt %p?>
# AbiWord
[abw]
Open=abiword %f
# Microsoft Word Document
[doc|dot|wri]
Open=soffice %f
#Open=koffice %f
View={!SHELL} catdoc -w %f || word2x -f text %f - || strings %f
# Microsoft Excel Worksheet
[xls|xlw]
Open=soffice %f
#Open=koffice %f
View=xls2csv %f || strings %f
# DVI
[dvi]
Open=xdvi %f &
View=dvi2tty %f
Convert file to Postscript=dvips %f
# TeX
[tex]
Open={!EDITOR} %p
TeX this file={!SHELL} tex %f
LaTeX this file={!SHELL} latex %f
csTeX this file={!SHELL} csplain %f
csLaTeX this file={!SHELL} cslatex %f
### Miscellaneous ###
# dbf
[dbf]
#Open={!VIEWER} <?dbview %f?>
View=dbview -b %f
# BitTorrent
[torrent]
View={!VIEWER} <?aria2c -S %p?>
### Archives ###
[tar]
Open={!VFS}
View={!VIEWER} <?tar tvvf %p?>
Extract={!SHELL} tar xf %f
[tgz]
Open={!VFS}
View={!VIEWER} <?gzip -dc %f 2>/dev/null | tar tvvf -?>
Extract={!SHELL} gzip -dc %f 2>/dev/null | tar xzf -
[bz]
Open={!VFS}
View={!VIEWER} <?bzip -dc %f 2>/dev/null?>
Extract={!SHELL} bzip -dc %f 2>/dev/null
[bz2]
Open={!VFS}
View={!VIEWER} <?bzip2 -dc %f 2>/dev/null?>
Extract={!SHELL} bzip2 -dc %f 2>/dev/null
# zip
[zip|jar]
Open={!VFS}
View={!VIEWER} <?unzip -v %f?>
Extract={!SHELL} unzip %f
#Extract (with flags)=I=%{Enter any Unzip flags:}; if test -n "$I"; then unzip $I %f; fi
Unzip={!SHELL} unzip %f '*'
# zoo
[zoo]
Open={!VFS}
View={!VIEWER} <?zoo l %f?>
Extract={!SHELL} zoo x %f '*'
# lha
[lha]
Open={!VFS}
View={!VIEWER} <?lharc l %f?>
Extract={!SHELL} lharc x %f '*'
#Extract (with flags)=I=%{Enter any LHarc flags:}; if test -n "$I"; then lharc x $I %f; fi
# arj
[arj]
Open={!VFS}
View={!VIEWER} <?unarj l %p?>
Extract={!SHELL} unarj x %f '*'
#Extract (with flags)=I=%{Enter any Unarj flags:}; if test -n "$I"; then unarj x $I %f; fi
# ha
[ha]
Open={!VFS}
View={!VIEWER} <?ha lf %p?>
Extract={!SHELL} ha xy %f '*'
# Extract (with flags)=I=%{Enter any HA flags:}; if test -n "$I"; then ha xy $I %f; fi
# rar
[rar|r00|r02|r02|r03|r04|r05|r06|r07|r08|r09]
Open={!VFS}
View={!VIEWER} <?rar v -c- %p?>
Extract={!SHELL} rar x -c- %f '*'
# Extract (with flags)=I=%{Enter any RAR flags:}; if test -n "$I";then rar x $I %f; fi
#compress
[Z]
Open={!VFS}
View={!SHELL} compress -dc %f
Extract={!SHELL} compress -dc %f
# cpio
[cpio]
Open={!VFS}
View={!SHELL} cat %f | cpio -ictv
Extract={!SHELL} cat %f | cpio -ic
# gzip
[gz]
Open={!VFS}
View={!VIEWER} <?gzip -dc %f 2>/dev/null?>
Uncompress={!SHELL} gunzip %f
# bzip2
[bz2|bzip2]
Open={!VFS}
View={!VIEWER} <?bzip2 -dc %f 2>/dev/null?>
Uncompress={!SHELL} bunzip2 %f
# bzip
[bz|bzip]
Open={!VFS}
View={!VIEWER} <?bzip -dc %f 2>/dev/null?>
Uncompress={!SHELL} bunzip %f
# ace
[ace]
Open={!VFS}
Uncompress={!SHELL} unace e %p
# Source RPMs (SuSE uses *.spm, others use *.src.rpm)
[spm|srcm]
Open={!VFS}
View={!VIEWER} <?rpm -qivlp --scripts %p?>
Install this RPM={!SHELL} rpm -i %f
Rebuild this RPM={!SHELL} rpm --rebuild %f
Check signature={!SHELL} rpm --checksig %f
# Compiled RPMs
[rpm]
Open={!VFS}
View={!VIEWER}<?rpm -qivlp --scripts %p?>
Install this RPM={!SHELL} rpm -i %p
Upgrade this RPM={!SHELL} rpm -U %p
Check signature={!SHELL} rpm --checksig %f
# deb
[deb]
Open={!VFS}
View={!VIEWER} <?dpkg-deb -c %p?>