1
0
Fork 0

mc: update defaults

This commit is contained in:
Vladimír Dudr 2025-04-15 07:56:42 +02:00
parent db9624783a
commit 98065cb254

View file

@ -23,11 +23,11 @@
# Section [Default] is optional. It is applied only if no other match was found.
#
# Sections like [Include/xxxx] can be referenced as "Include=xxxx" from other sections.
# Section [Include/xxxx] can be located as before as after sections that point to it.
# Section [Include/xxxx] can be located before or after sections that point to it.
#
# Sections are processed from top to bottom, thus the order is important.
# If there are more than one sections with the same name in this file, the first
# section will be used.
# Multiple sections with the same name are allowed, they are merged together.
# Sections may contain the same key multiple times; the last entry wins.
#
# [Default] should be a catch-all action and come last.
#
@ -38,7 +38,7 @@
# Directory
# Matches any directory matching regular expression.
# Always case sensitive.
# This key has the highest priority over other keys. If this key is in a section,
# This key has the highest priority over other keys. If this key is present,
# other keys are ignored.
#
# Type
@ -53,12 +53,16 @@
#
# Regex
# An extended regular expression
# Please note that we are using the PCRE library and thus \| matches
# Please note that we are using the PCRE library and thus \\| matches
# the literal | and | has a special meaning (or), and () have a special meaning
# and \( \) stand for literal ( ).
# and \\( \\) stand for literal ( ).
#
# An unescaped backslash \ is handled as invalid escape sequences in glib = 2.77.3 and
# glib >= 2.79 (https://gitlab.gnome.org/GNOME/glib/-/issues/3094), therefore backslash
# must be escaped.
#
# Example:
# Regex=\.t(ar\.lzma|lz)$
# Regex=\\.t(ar\\.lzma|lz)$
# matches *.tar.lzma or *.tlz.
#
# RegexIgnoreCase [true|false]
@ -188,7 +192,7 @@ Version=4.0
### GIT Repo ###
[gitfs changeset]
Regex=^\[git\]
Regex=^\\[git\\]
Open=%cd %p/changesetfs://
View=%cd %p/patchsetfs://
@ -200,7 +204,7 @@ View=%cd %p/patchsetfs://
# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z
[tar.gzip]
Regex=\.t([gp]?z|ar\.g?[zZ])$
Regex=\\.t([gp]?z|ar\\.g?[zZ])$
Include=tar.gz
[ipk]
@ -899,6 +903,12 @@ ShellIgnoreCase=true
Open=/usr/lib/mc/ext.d/archive.sh view lz4 %var{PAGER:more}
View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lz4
[lzo]
Shell=.lzo
ShellIgnoreCase=true
Open=/usr/lib/mc/ext.d/archive.sh view lzo %var{PAGER:more}
View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lzo
[wim]
Shell=.wim
ShellIgnoreCase=true
@ -911,7 +921,7 @@ View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view wim
### Archives ###
[mailbox]
Type=^ASCII\ mail\ text
Type=^ASCII mail text
Open=%cd %p/mailfs://
@ -923,12 +933,16 @@ Type=^ELF
#Open=%var{PAGER:more} %f
View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view elf
[Mach-O]
Type=^Mach-O
#Open=%var{PAGER:more} %f
View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view dylib
### Documentation ###
# GNU Info page
[info-by-type]
Type=^Info\ text
Type=^Info text
Open=/usr/lib/mc/ext.d/text.sh open info
# Manual page - compressed