.config/mc/mc.ext
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 20 Feb 2023 01:20:35 +0200
changeset 1015 64055295c18c
parent 959 25d27dfee90e
permissions -rw-r--r--
Seems M- syntax doesn't work, replaced it with \e.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
323
55f697ab8790 Add mode setting for Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 313
diff changeset
     1
# -*- mode: conf -*-
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
# All lines starting with # or empty lines are thrown away.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
# Lines starting in the first column should have following format:
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
# keyword/descNL, i.e. everything after keyword/ until new line is desc
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
# keyword can be: 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
#    shell (desc is, when starting with a dot, any extension (no wildcars), 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
#          i.e. matches all the files *desc . Example: .tar matches *.tar;
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
#          if it doesn't start with a dot, it matches only a file of that name)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
#    regex (desc is an extended regular expression)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
#          Please note that we are using the GNU regex library and thus
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
#          \| matches the literal | and | has special meaning (or) and
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
#          () have special meaning and \( \) stand for literal ( ).
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
#    type  (file matches this if `file %f` matches regular expression desc
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
#          (the filename: part from `file %f` is removed))
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
#    directory (matches any directory matching regular expression desc)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
#    include (matches an include directive)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
#    default (matches any file no matter what desc is)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
# Other lines should start with a space or tab and should be in the format:
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
# keyword=commandNL (with no spaces around =), where keyword should be: 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    31
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    32
#    Open (if the user presses Enter or doubleclicks it), 
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    33
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    34
#    View (F3), Edit (F4)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    35
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    36
#    Include is the keyword used to add any further entries from an include/
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    37
#    section
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    38
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    39
# command is any one-line shell command, with the following substitutions:
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    40
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    41
# %% -> % character
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    42
# %p -> name of the current file (without path, but pwd is its path)
325
667339502172 Remove archive section as version 4.8.x break compatibility for virtual FS
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 324
diff changeset
    43
# %f -> name of the current file. Unlike %p, if file is located on a
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    44
#   non-local virtual filesystem, i.e. either tarfs or ftpfs,
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    45
#   then the file will be temporarily copied into a local directory
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    46
#   and %f will be the full path to this local temporal file.
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    47
#   If you don't want to get a local copy and want to get the
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    48
#   virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    49
#   use %d/%p instead of %f.
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    50
# %d -> name of the current directory (pwd, without trailing slash)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    51
# %s -> "selected files", i.e. space separated list of tagged files if any
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    52
#       or name of the current file
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    53
# %t -> list of tagged files
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    54
# %u -> list of tagged files (they'll be untaged after the command)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    55
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    56
# (If these 6 letters are in uppercase, they refer to the other panel.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    57
# But you shouldn't have to use it in this file.)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    58
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    59
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    60
# %cd -> the rest is a path mc should change into (cd won't work, since it's
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    61
#   a child process).  %cd handles even vfs names.
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    62
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    63
# %view -> the command you type will be piped into mc's internal file viewer
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    64
#   if you type only the %view and no command, viewer will load %f file
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    65
#   instead (i.e. no piping, so it is different to %view cat %f)
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    66
#   %view may be directly followed by {} with a list of any of
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    67
#   ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    68
#   text using backspace for bold and underscore) and unform
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
    69
#   (no highlighting for nroff sequences) separated by commas.
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    70
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    71
# %var -> You use it like this: %var{VAR:default}.  This macro will expand
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    72
#       to the value of the VAR variable in the environment if it's set
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    73
#       otherwise the value in default will be used.  This is similar to
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    74
#       the Bourne shell ${VAR-default} construct.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    75
#
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    76
# Rules are applied from top to bottom, thus the order is important.
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    77
# If some actions are missing, search continues as if this target didn't
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    78
# match (i.e. if a file matches the first and second entry and View action
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    79
# is missing in the first one, then on pressing F3 the View action from
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    80
# the second entry will be used. default should catch all the actions.
325
667339502172 Remove archive section as version 4.8.x break compatibility for virtual FS
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 324
diff changeset
    81
#
667339502172 Remove archive section as version 4.8.x break compatibility for virtual FS
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 324
diff changeset
    82
# Any new entries you develop for you are always welcome if they are
667339502172 Remove archive section as version 4.8.x break compatibility for virtual FS
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 324
diff changeset
    83
# useful on more than one system.  You can post your modifications
667339502172 Remove archive section as version 4.8.x break compatibility for virtual FS
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 324
diff changeset
    84
# as tickets at www.midnight-commander.org
269
48b3cbdac750 .tar.xz, .txz
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 120
diff changeset
    85
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
    86
################################################################
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
    87
# Image.
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    88
337
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
    89
shell/.xcf
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
    90
	Open=(gimp %f &)
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
    91
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
    92
type/^GIF
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
    93
	Include=image
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
    94
type/^JPEG
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
    95
	Include=image
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
    96
type/^PC\ bitmap
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
    97
	Include=image
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
    98
type/^PNG
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
    99
	Include=image
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   100
type/^TIFF
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   101
	Include=image
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   102
type/^PBM
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   103
	Include=image
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   104
type/^PGM
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   105
	Include=image
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   106
type/^PPM
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   107
	Include=image
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   108
type/^Netpbm
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   109
	Include=image
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   110
shell/.xbm
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   111
	Open=bitmap %f
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   112
shell/.xpm
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   113
	Include=image
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   114
	# View=sxpm %f
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   115
shell/.ico
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   116
	Include=image
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   117
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   118
include/image
765
48de27488be8 gpicview is nice viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 752
diff changeset
   119
    Open=gpicview %f &
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   120
    View=%view{ascii} identify %f
337
59ef303c8713 Edit images with GIMP.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 336
diff changeset
   121
    Edit=gimp %f 2>/dev/null &
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   122
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   123
################################################################
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   124
# Audio.
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   125
334
524bb479d58a Play most music files with vlc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 333
diff changeset
   126
regex/\.([wW][aA][vV]|[sS][nN][dD]|[vV][oO][cC]|[aA][uU]|[sS][mM][pP]|[aA][iI][fF][fF]|[sS][nN][dD])$
524bb479d58a Play most music files with vlc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 333
diff changeset
   127
    Include=audio
524bb479d58a Play most music files with vlc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 333
diff changeset
   128
regex/\.([mM][pP]3)$
524bb479d58a Play most music files with vlc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 333
diff changeset
   129
    Include=audio
524bb479d58a Play most music files with vlc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 333
diff changeset
   130
524bb479d58a Play most music files with vlc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 333
diff changeset
   131
include/audio
524bb479d58a Play most music files with vlc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 333
diff changeset
   132
    Open=vlc %f&
524bb479d58a Play most music files with vlc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 333
diff changeset
   133
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   134
################################################################
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   135
# Video.
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   136
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   137
regex/\.([wW][mM][vV])$
333
14551f8c27ff As my Debian installation miss some mime association I switch to vlc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 332
diff changeset
   138
    Include=video
332
49a59f56956e My Debian have no association for video/mp4 mimetype.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 331
diff changeset
   139
regex/\.([fF][lL][iIcCvV])$
333
14551f8c27ff As my Debian installation miss some mime association I switch to vlc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 332
diff changeset
   140
    Include=video
332
49a59f56956e My Debian have no association for video/mp4 mimetype.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 331
diff changeset
   141
regex/\.([mM][pP]4|[mM][pP][eE]?[gG])$
333
14551f8c27ff As my Debian installation miss some mime association I switch to vlc.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 332
diff changeset
   142
    Include=video
330
6197aede6474 Remove content that duplicate /etc/mc/mc.ext. I preserve definition for video
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 327
diff changeset
   143
regex/\.([aA][vV][iI])$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   144
    Include=video
330
6197aede6474 Remove content that duplicate /etc/mc/mc.ext. I preserve definition for video
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 327
diff changeset
   145
regex/\.(3[gG][pP])$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   146
    Include=video
330
6197aede6474 Remove content that duplicate /etc/mc/mc.ext. I preserve definition for video
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 327
diff changeset
   147
regex/\.([aA][sS][fFxX])$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   148
    Include=video
330
6197aede6474 Remove content that duplicate /etc/mc/mc.ext. I preserve definition for video
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 327
diff changeset
   149
regex/\.([dD][iI][vV][xX])$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   150
    Include=video
330
6197aede6474 Remove content that duplicate /etc/mc/mc.ext. I preserve definition for video
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 327
diff changeset
   151
regex/\.([mM][kK][vV])$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   152
    Include=video
330
6197aede6474 Remove content that duplicate /etc/mc/mc.ext. I preserve definition for video
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 327
diff changeset
   153
regex/\.([mM][oO][vV]|[qQ][tT])$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   154
    Include=video
330
6197aede6474 Remove content that duplicate /etc/mc/mc.ext. I preserve definition for video
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 327
diff changeset
   155
# MPEG-2 TS container + H.264 codec
6197aede6474 Remove content that duplicate /etc/mc/mc.ext. I preserve definition for video
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 327
diff changeset
   156
regex/\.([mM][tT][sS])$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   157
    Include=video
330
6197aede6474 Remove content that duplicate /etc/mc/mc.ext. I preserve definition for video
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 327
diff changeset
   158
regex/\.([vV][oO][bB])$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   159
    Include=video
330
6197aede6474 Remove content that duplicate /etc/mc/mc.ext. I preserve definition for video
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 327
diff changeset
   160
regex/\.([wW][mM][vV])$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   161
    Include=video
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   162
regex/\.([oO][gG][mM])$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   163
    Include=video
792
47100aeb0f36 .m4v format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 791
diff changeset
   164
regex/\.([mM]4[vV])$
47100aeb0f36 .m4v format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 791
diff changeset
   165
    Include=video
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   166
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   167
include/video
717
fc3234dde467 Use mplayer instead of vlc for video.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 711
diff changeset
   168
    Open=mplayer %f
fc3234dde467 Use mplayer instead of vlc for video.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 711
diff changeset
   169
    # Open=vlc %f
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   170
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   171
################################################################
338
02f1098079ef Open and view RTF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 337
diff changeset
   172
# Plain and binary documents.
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   173
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   174
# GNU Info page
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   175
type/^Info\ text
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   176
    Open=info -f %f
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   177
shell/.info
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   178
    Open=info -f %f
856
4819eaebb92c atril stopped same document position. Use zathura instead.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 813
diff changeset
   179
335
5522f024a05b Forbid to display errors from xpdf, xchm, djview, fbreader.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 334
diff changeset
   180
type/^PDF
791
2183ca915c15 Some PDF file reported as pure data by file utility, so guess PDF
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 765
diff changeset
   181
    Include=my-pdf
2183ca915c15 Some PDF file reported as pure data by file utility, so guess PDF
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 765
diff changeset
   182
regex/\.[pP][dD][fF]
2183ca915c15 Some PDF file reported as pure data by file utility, so guess PDF
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 765
diff changeset
   183
    Include=my-pdf
856
4819eaebb92c atril stopped same document position. Use zathura instead.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 813
diff changeset
   184
type/^DjVu
4819eaebb92c atril stopped same document position. Use zathura instead.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 813
diff changeset
   185
    Include=my-pdf
4819eaebb92c atril stopped same document position. Use zathura instead.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 813
diff changeset
   186
shell/.djvu
4819eaebb92c atril stopped same document position. Use zathura instead.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 813
diff changeset
   187
    Include=my-pdf
4819eaebb92c atril stopped same document position. Use zathura instead.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 813
diff changeset
   188
791
2183ca915c15 Some PDF file reported as pure data by file utility, so guess PDF
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 765
diff changeset
   189
include/my-pdf
856
4819eaebb92c atril stopped same document position. Use zathura instead.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 813
diff changeset
   190
	Open=zathura %f 2>/dev/null &
791
2183ca915c15 Some PDF file reported as pure data by file utility, so guess PDF
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 765
diff changeset
   191
752
d688ce6aa4dd chm/hlp viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 751
diff changeset
   192
type/^MS\ Windows\ 3.x\ help\ file
d688ce6aa4dd chm/hlp viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 751
diff changeset
   193
    Open=wine winhlp32 %f 2>/dev/null &
d688ce6aa4dd chm/hlp viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 751
diff changeset
   194
regex/\.[cC][hH][mM]
d688ce6aa4dd chm/hlp viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 751
diff changeset
   195
    Include=my-chm
d688ce6aa4dd chm/hlp viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 751
diff changeset
   196
shell/^MS\ Windows\ HtmlHelp
d688ce6aa4dd chm/hlp viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 751
diff changeset
   197
    Include=my-chm
d688ce6aa4dd chm/hlp viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 751
diff changeset
   198
include/my-chm
d688ce6aa4dd chm/hlp viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 751
diff changeset
   199
    Open=wine hh %f || xchm %f &
274
efb78fb374ee Open .fb2 and .epub files in MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 269
diff changeset
   200
shell/.fb2
793
001a2b1ded2b Give a try to ebook-viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 792
diff changeset
   201
    Open=ebook-viewer %f 2>/dev/null &
274
efb78fb374ee Open .fb2 and .epub files in MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 269
diff changeset
   202
shell/.epub
793
001a2b1ded2b Give a try to ebook-viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 792
diff changeset
   203
    Open=ebook-viewer %f 2>/dev/null &
812
1f6f7d99f655 Add lit format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 803
diff changeset
   204
shell/.lit
1f6f7d99f655 Add lit format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 803
diff changeset
   205
    Open=ebook-viewer %f 2>/dev/null &
548
b22eff3250d7 Open .mobi files by fbreader.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 511
diff changeset
   206
shell/.mobi
793
001a2b1ded2b Give a try to ebook-viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 792
diff changeset
   207
    Open=ebook-viewer %f 2>/dev/null &
803
d788285e47d0 Mobipocket association.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 793
diff changeset
   208
shell/.azw3
d788285e47d0 Mobipocket association.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 793
diff changeset
   209
    Open=ebook-viewer %f 2>/dev/null &
d788285e47d0 Mobipocket association.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 793
diff changeset
   210
type/^Mobipocket\ E-book
d788285e47d0 Mobipocket association.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 793
diff changeset
   211
    Open=ebook-viewer %f 2>/dev/null &
338
02f1098079ef Open and view RTF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 337
diff changeset
   212
regex/\.([rR][tT][fF])$
793
001a2b1ded2b Give a try to ebook-viewer.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 792
diff changeset
   213
    Open=ebook-viewer %f 2>/dev/null &
338
02f1098079ef Open and view RTF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 337
diff changeset
   214
    View=%view{ascii} catdoc -w %f
274
efb78fb374ee Open .fb2 and .epub files in MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 269
diff changeset
   215
691
0ecc44e6281e Open .shtml files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 640
diff changeset
   216
regex/\.[sS]?[hH][tT][mM][lL]?$
453
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 452
diff changeset
   217
    Open=see %f 2>/dev/null &
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 452
diff changeset
   218
697
897df168fda7 Fix XLS and DOC file handling by MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 691
diff changeset
   219
regex/\.[Dd][Oo][Cc][Xx]?$
897df168fda7 Fix XLS and DOC file handling by MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 691
diff changeset
   220
	Open=see %f >/dev/null 2>&1 &
897df168fda7 Fix XLS and DOC file handling by MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 691
diff changeset
   221
regex/\.[Xx][Ll][Ss][xX]?$
897df168fda7 Fix XLS and DOC file handling by MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 691
diff changeset
   222
    Include=my-msword
897df168fda7 Fix XLS and DOC file handling by MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 691
diff changeset
   223
shell/.docx$
897df168fda7 Fix XLS and DOC file handling by MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 691
diff changeset
   224
    Include=my-msword
339
87ba9bf5f1dd Microsoft Office Document.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 338
diff changeset
   225
regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
697
897df168fda7 Fix XLS and DOC file handling by MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 691
diff changeset
   226
    Include=my-msword
339
87ba9bf5f1dd Microsoft Office Document.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 338
diff changeset
   227
type/^Microsoft\ Word
697
897df168fda7 Fix XLS and DOC file handling by MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 691
diff changeset
   228
    Include=my-msword
339
87ba9bf5f1dd Microsoft Office Document.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 338
diff changeset
   229
type/^Microsoft\ Office\ Document
697
897df168fda7 Fix XLS and DOC file handling by MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 691
diff changeset
   230
    Include=my-msword
897df168fda7 Fix XLS and DOC file handling by MC.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 691
diff changeset
   231
include/my-msword
339
87ba9bf5f1dd Microsoft Office Document.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 338
diff changeset
   232
	Open=see %f >/dev/null 2>&1 &
87ba9bf5f1dd Microsoft Office Document.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 338
diff changeset
   233
	View=%view{ascii} antiword -t %f || catdoc -w %f || word2x -f text %f - || strings %f
87ba9bf5f1dd Microsoft Office Document.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 338
diff changeset
   234
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   235
################################################################
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   236
# Build rules.
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   237
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   238
# Makefile
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   239
regex/[Mm]akefile$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   240
    Open=make -f %f %{Enter parameters}
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   241
# Imakefile
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   242
shell/Imakefile
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   243
    Open=xmkmf -a
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   244
# Makefile.PL (MakeMaker)
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   245
regex/^Makefile.(PL|pl)$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   246
    Open=%var{PERL:perl} %f
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   247
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   248
################################################################
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   249
# Open in Emacs.
297
94be7bf3d9a3 Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 296
diff changeset
   250
959
25d27dfee90e No need for file size check when opening file in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 856
diff changeset
   251
default/*
25d27dfee90e No need for file size check when opening file in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 856
diff changeset
   252
    Open=file %f
25d27dfee90e No need for file size check when opening file in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 856
diff changeset
   253
    Edit=e %f
25d27dfee90e No need for file size check when opening file in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 856
diff changeset
   254
751
eddc767cd962 Ignore file extension case for dev files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 740
diff changeset
   255
regex/\.([cC][cC]?|[cC][pP][pP]|[cC][xX][xX])$
297
94be7bf3d9a3 Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 296
diff changeset
   256
    Open=e %f
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   257
    # Open=sensible-editor %f
614
3e5939c04130 Register lisp files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 549
diff changeset
   258
    #Open=%var{EDITOR:vi} %f
751
eddc767cd962 Ignore file extension case for dev files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 740
diff changeset
   259
regex/\.([hH]|[hH][pP][pP])$
297
94be7bf3d9a3 Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 296
diff changeset
   260
    Open=e %f
751
eddc767cd962 Ignore file extension case for dev files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 740
diff changeset
   261
regex/\.(s|S|[aA][sS][mM])$
297
94be7bf3d9a3 Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 296
diff changeset
   262
    Open=e %f
94be7bf3d9a3 Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 296
diff changeset
   263
shell/.java
94be7bf3d9a3 Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 296
diff changeset
   264
    Open=e %f
94be7bf3d9a3 Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 296
diff changeset
   265
shell/.f
94be7bf3d9a3 Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 296
diff changeset
   266
    Open=e %f
614
3e5939c04130 Register lisp files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 549
diff changeset
   267
shell/.py
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   268
    Open=e %f
751
eddc767cd962 Ignore file extension case for dev files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 740
diff changeset
   269
shell/.[lL][iI][sS][pP]
614
3e5939c04130 Register lisp files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 549
diff changeset
   270
    Open=e %f
3e5939c04130 Register lisp files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 549
diff changeset
   271
shell/.el
3e5939c04130 Register lisp files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 549
diff changeset
   272
    Open=e %f
549
ae515e9c1ef0 Fix regex pattern: missing tail '$'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 548
diff changeset
   273
regex/\.(sh|bash|tcsh)$
303
d05577057b67 Fix action for .sh files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 302
diff changeset
   274
    Edit=e %f
614
3e5939c04130 Register lisp files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 549
diff changeset
   275
regex/\.[Tt][Ee][Xx]$
3e5939c04130 Register lisp files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 549
diff changeset
   276
    Open=e %f
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   277
regex/\.(te?xi|texinfo)$
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   278
    Open=e %f
297
94be7bf3d9a3 Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 296
diff changeset
   279
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   280
################################################################
297
94be7bf3d9a3 Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 296
diff changeset
   281
# Object files.
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   282
549
ae515e9c1ef0 Fix regex pattern: missing tail '$'.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 548
diff changeset
   283
regex/\.(o|obj)$
331
7ae811635f6e Remove tabs...
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 330
diff changeset
   284
    View=%view{ascii} file %f && nm %f
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   285
regex/\.(so|so\.[0-9\.]*)$
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   286
    View=%view{ascii} file %f && nm -C -D %f
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   287
type/^ELF
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   288
    View=%view{ascii} file %f && nm -C %f
297
94be7bf3d9a3 Open source files in Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 296
diff changeset
   289
shell/.class
724
0340a7e6a5b3 With -v javap print class version.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 717
diff changeset
   290
    View=%view{ascii} tmp=%p; javap -v -p -c ${tmp%%.class}
3
a1e69064ee0b Added some linux conf files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   291
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   292
################################################################
487
6dae75d0d5ff Wine. Windows executable.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 460
diff changeset
   293
# Wine. Windows executable.
6dae75d0d5ff Wine. Windows executable.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 460
diff changeset
   294
6dae75d0d5ff Wine. Windows executable.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 460
diff changeset
   295
regex/\.[eE][xX][eE]$
6dae75d0d5ff Wine. Windows executable.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 460
diff changeset
   296
    Open=wine %f &
489
7bd81501b248 How all headers for .exe and all info for .dll
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 487
diff changeset
   297
    View=%view{ascii} i586-mingw32msvc-objdump -fx %f || i686-w64-mingw32-objdump -fx %f
490
eb6cd35851b2 Add support for .msi files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 489
diff changeset
   298
regex/\.[mM][sS][iI]$
eb6cd35851b2 Add support for .msi files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 489
diff changeset
   299
    Open=msiexec /i %f &
489
7bd81501b248 How all headers for .exe and all info for .dll
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 487
diff changeset
   300
7bd81501b248 How all headers for .exe and all info for .dll
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 487
diff changeset
   301
regex/\.[dD][lL][lL]$
7bd81501b248 How all headers for .exe and all info for .dll
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 487
diff changeset
   302
    View=%view{ascii} i586-mingw32msvc-objdump -tTrR -fx %f || i686-w64-mingw32-objdump -tTrR -fx %f
487
6dae75d0d5ff Wine. Windows executable.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 460
diff changeset
   303
6dae75d0d5ff Wine. Windows executable.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 460
diff changeset
   304
################################################################
454
0999a1f85875 Add Nindendo 64 file type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 453
diff changeset
   305
# Game/console ROMs.
444
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   306
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   307
shell/.nes
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   308
    Include=nesgame
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   309
type/^iNES ROM dump
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   310
    Include=nesgame
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   311
include/nesgame
710
c888b7da227f Prevent screen pollution with error output.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 709
diff changeset
   312
    Open=nes %f 2>/dev/null 1>/dev/null &
444
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   313
	View=%view{ascii} file %f
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   314
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   315
shell/.smc
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   316
    Include=snesgame
445
6a6aab539bc2 Add bindings for SNES.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 444
diff changeset
   317
shell/.sfc
6a6aab539bc2 Add bindings for SNES.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 444
diff changeset
   318
    Include=snesgame
6a6aab539bc2 Add bindings for SNES.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 444
diff changeset
   319
shell/.swc
6a6aab539bc2 Add bindings for SNES.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 444
diff changeset
   320
    Include=snesgame
6a6aab539bc2 Add bindings for SNES.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 444
diff changeset
   321
shell/.mgd
6a6aab539bc2 Add bindings for SNES.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 444
diff changeset
   322
    Include=snesgame
6a6aab539bc2 Add bindings for SNES.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 444
diff changeset
   323
shell/.mgh
6a6aab539bc2 Add bindings for SNES.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 444
diff changeset
   324
    Include=snesgame
444
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   325
include/snesgame
711
ab5ff3f42f03 Open SNES with mednafen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 710
diff changeset
   326
    Open=mednafen %f 2>/dev/null 1>/dev/null &
ab5ff3f42f03 Open SNES with mednafen.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 710
diff changeset
   327
    # Open=zsnes -v 8 %f &
444
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   328
	View=%view{ascii} file %f
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   329
452
f5363ac2e581 Sega MegaDrive/Genesis raw ROM dump
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 445
diff changeset
   330
type/^Sega MegaDrive/Genesis raw ROM dump
f5363ac2e581 Sega MegaDrive/Genesis raw ROM dump
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 445
diff changeset
   331
    Include=segagame
f5363ac2e581 Sega MegaDrive/Genesis raw ROM dump
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 445
diff changeset
   332
include/segagame
710
c888b7da227f Prevent screen pollution with error output.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 709
diff changeset
   333
    Open=mednafen %f 2>/dev/null 1>/dev/null &
452
f5363ac2e581 Sega MegaDrive/Genesis raw ROM dump
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 445
diff changeset
   334
	View=%view{ascii} file %f
f5363ac2e581 Sega MegaDrive/Genesis raw ROM dump
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 445
diff changeset
   335
454
0999a1f85875 Add Nindendo 64 file type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 453
diff changeset
   336
shell/.n64
0999a1f85875 Add Nindendo 64 file type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 453
diff changeset
   337
    Include=n64game
0999a1f85875 Add Nindendo 64 file type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 453
diff changeset
   338
include/n64game
0999a1f85875 Add Nindendo 64 file type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 453
diff changeset
   339
    Open=mupen64plus --windowed --resolution 800x600 --emumode 2 %f &
0999a1f85875 Add Nindendo 64 file type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 453
diff changeset
   340
	View=%view{ascii} echo I am thinks that %f is a Nindendo 64 rom...
0999a1f85875 Add Nindendo 64 file type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 453
diff changeset
   341
444
af2617d3841f Game ROMs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 339
diff changeset
   342
################################################################
336
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   343
# Misc, tutorial, help rules.
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   344
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   345
shell/.my
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   346
    Open=tmp=%f; echo ${tmp%.my} %f %{Enter opt:} %{Enter file:}
7f323891e62f Reorder and add sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 335
diff changeset
   347