81 # |
81 # |
82 # Any new entries you develop for you are always welcome if they are |
82 # Any new entries you develop for you are always welcome if they are |
83 # useful on more than one system. You can post your modifications |
83 # useful on more than one system. You can post your modifications |
84 # as tickets at www.midnight-commander.org |
84 # as tickets at www.midnight-commander.org |
85 |
85 |
86 |
86 ################################################################ |
87 # .so libraries |
87 # Image. |
88 # Exception - .so libraries are not manual pages |
|
89 regex/\.(so|so\.[0-9\.]*)$ |
|
90 View=%view{ascii} file %f && nm -C -D %f |
|
91 |
|
92 # Object |
|
93 type/^ELF |
|
94 #Open=%var{PAGER:more} %f |
|
95 View=%view{ascii} file %f && nm -C %f |
|
96 |
|
97 ### Documentation ### |
|
98 |
|
99 # Texinfo |
|
100 regex/\.(te?xi|texinfo)$ |
|
101 |
|
102 # GNU Info page |
|
103 type/^Info\ text |
|
104 Open=info -f %f |
|
105 |
|
106 shell/.info |
|
107 Open=info -f %f |
|
108 |
88 |
109 include/image |
89 include/image |
110 Open=(see %f &) |
90 Open=(see %f &) |
111 View=%view{ascii} identify %f |
91 View=%view{ascii} identify %f |
112 #View=%view{ascii} asciiview %f |
92 #View=%view{ascii} asciiview %f |
113 |
93 |
|
94 ################################################################ |
|
95 # Audio. |
|
96 |
114 regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$ |
97 regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$ |
115 Include=audio |
98 Include=audio |
116 regex/\.([mM][pP]3)$ |
99 regex/\.([mM][pP]3)$ |
117 Include=audio |
100 Include=audio |
118 |
101 |
119 include/audio |
102 include/audio |
120 Open=vlc %f& |
103 Open=vlc %f& |
121 |
104 |
|
105 ################################################################ |
|
106 # Video. |
|
107 |
122 regex/\.([wW][mM][vV])$ |
108 regex/\.([wW][mM][vV])$ |
123 Include=video |
109 Include=video |
124 regex/\.([fF][lL][iIcCvV])$ |
110 regex/\.([fF][lL][iIcCvV])$ |
125 Include=video |
111 Include=video |
126 regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$ |
112 regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$ |
161 shell/.fb2 |
153 shell/.fb2 |
162 Open=fbreader %f 2>/dev/null & |
154 Open=fbreader %f 2>/dev/null & |
163 shell/.epub |
155 shell/.epub |
164 Open=fbreader %f 2>/dev/null & |
156 Open=fbreader %f 2>/dev/null & |
165 |
157 |
|
158 ################################################################ |
|
159 # Build rules. |
|
160 |
166 # Makefile |
161 # Makefile |
167 regex/[Mm]akefile$ |
162 regex/[Mm]akefile$ |
168 Open=make -f %f %{Enter parameters} |
163 Open=make -f %f %{Enter parameters} |
169 |
|
170 # Imakefile |
164 # Imakefile |
171 shell/Imakefile |
165 shell/Imakefile |
172 Open=xmkmf -a |
166 Open=xmkmf -a |
173 |
|
174 # Makefile.PL (MakeMaker) |
167 # Makefile.PL (MakeMaker) |
175 regex/^Makefile.(PL|pl)$ |
168 regex/^Makefile.(PL|pl)$ |
176 Open=%var{PERL:perl} %f |
169 Open=%var{PERL:perl} %f |
177 |
170 |
178 shell/.my |
171 ################################################################ |
179 Open=tmp=%f; echo ${tmp%.my} %f %{Enter opt:} %{Enter file:} |
|
180 |
|
181 # Open in Emacs. |
172 # Open in Emacs. |
|
173 |
182 regex/\.(c|cpp|cxx) |
174 regex/\.(c|cpp|cxx) |
183 Open=e %f |
175 Open=e %f |
184 # Open=sensible-editor %f |
176 # Open=sensible-editor %f |
185 regex/\.(h|hpp) |
177 regex/\.(h|hpp) |
186 Open=e %f |
178 Open=e %f |
193 regex/\.([Tt][Ee][Xx])$ |
185 regex/\.([Tt][Ee][Xx])$ |
194 Open=e %f |
186 Open=e %f |
195 #Open=%var{EDITOR:vi} %f |
187 #Open=%var{EDITOR:vi} %f |
196 regex/\.(sh|bash|tcsh) |
188 regex/\.(sh|bash|tcsh) |
197 Edit=e %f |
189 Edit=e %f |
198 |
190 regex/\.(te?xi|texinfo)$ |
|
191 Open=e %f |
|
192 |
|
193 ################################################################ |
199 # Object files. |
194 # Object files. |
|
195 |
200 regex/\.(o|obj) |
196 regex/\.(o|obj) |
201 #Open=sensible-pager %f |
|
202 View=%view{ascii} file %f && nm %f |
197 View=%view{ascii} file %f && nm %f |
|
198 regex/\.(so|so\.[0-9\.]*)$ |
|
199 View=%view{ascii} file %f && nm -C -D %f |
|
200 type/^ELF |
|
201 View=%view{ascii} file %f && nm -C %f |
203 shell/.class |
202 shell/.class |
204 View=%view{ascii} tmp=%p; javap -c ${tmp%%.class} |
203 View=%view{ascii} tmp=%p; javap -c ${tmp%%.class} |
205 |
204 |
|
205 ################################################################ |
|
206 # Misc, tutorial, help rules. |
|
207 |
|
208 shell/.my |
|
209 Open=tmp=%f; echo ${tmp%.my} %f %{Enter opt:} %{Enter file:} |
|
210 |