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. # 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. # 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. # 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 # Multiple sections with the same name are allowed, they are merged together.
# section will be used. # Sections may contain the same key multiple times; the last entry wins.
# #
# [Default] should be a catch-all action and come last. # [Default] should be a catch-all action and come last.
# #
@ -38,7 +38,7 @@
# Directory # Directory
# Matches any directory matching regular expression. # Matches any directory matching regular expression.
# Always case sensitive. # 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. # other keys are ignored.
# #
# Type # Type
@ -53,12 +53,16 @@
# #
# Regex # Regex
# An extended regular expression # 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 # 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: # Example:
# Regex=\.t(ar\.lzma|lz)$ # Regex=\\.t(ar\\.lzma|lz)$
# matches *.tar.lzma or *.tlz. # matches *.tar.lzma or *.tlz.
# #
# RegexIgnoreCase [true|false] # RegexIgnoreCase [true|false]
@ -188,7 +192,7 @@ Version=4.0
### GIT Repo ### ### GIT Repo ###
[gitfs changeset] [gitfs changeset]
Regex=^\[git\] Regex=^\\[git\\]
Open=%cd %p/changesetfs:// Open=%cd %p/changesetfs://
View=%cd %p/patchsetfs:// View=%cd %p/patchsetfs://
@ -200,7 +204,7 @@ View=%cd %p/patchsetfs://
# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z # .tgz, .tpz, .tar.gz, .tar.z, .tar.Z
[tar.gzip] [tar.gzip]
Regex=\.t([gp]?z|ar\.g?[zZ])$ Regex=\\.t([gp]?z|ar\\.g?[zZ])$
Include=tar.gz Include=tar.gz
[ipk] [ipk]
@ -899,6 +903,12 @@ ShellIgnoreCase=true
Open=/usr/lib/mc/ext.d/archive.sh view lz4 %var{PAGER:more} 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 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] [wim]
Shell=.wim Shell=.wim
ShellIgnoreCase=true ShellIgnoreCase=true
@ -911,7 +921,7 @@ View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view wim
### Archives ### ### Archives ###
[mailbox] [mailbox]
Type=^ASCII\ mail\ text Type=^ASCII mail text
Open=%cd %p/mailfs:// Open=%cd %p/mailfs://
@ -923,12 +933,16 @@ Type=^ELF
#Open=%var{PAGER:more} %f #Open=%var{PAGER:more} %f
View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view elf 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 ### ### Documentation ###
# GNU Info page # GNU Info page
[info-by-type] [info-by-type]
Type=^Info\ text Type=^Info text
Open=/usr/lib/mc/ext.d/text.sh open info Open=/usr/lib/mc/ext.d/text.sh open info
# Manual page - compressed # Manual page - compressed