From: Walter Dnes <waltdnes@waltdnes.org>
To: Gentoo Users List <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] Heads up: latest ~/.config/mc/mc.ext.ini change
Date: Tue, 31 Dec 2024 08:40:10 -0500 [thread overview]
Message-ID: <MTAwMDAwMy53ZG5lc2RheQ.1735652425@quikprotect> (raw)
Due to changes in glib, mc.ext.ini now requires double backslashes as
per their documentation.
# Regex
# An extended regular expression
# 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 ( ).
#
# 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)$
# matches *.tar.lzma or *.tlz.
I use geeqie and gnumeric and mplayer a lot. Substitute your programs
if you use something else. The trailing "&" causes a separate process
to fork off and the "mc" program to return. This allows mc to do stuff
like opening multiple spreadsheet and csv files, so you can copy between
spreadsheets. Here is my custom stuff, inserted right after the comments
at the beginning of the actual config data. The first match is
executed, so putting this at the front over-rides later entries.
[mc.ext.ini]
Version=4.0
###Start custom stuff###
[image]
Regex=\\.(gif|jpeg|jpg|png|jng|mng|tiff|xbm|xpm|ico|svg|pgm|ppm|netpbm)$
RegexIgnoreCase=true
Open=/usr/bin/geeqie %p &
View=/usr/bin/geeqie %p &
[spreadsheet]
Regex=\\.(csv|gnumeric|xl[sw]|xlsx)$
RegexIgnoreCase=true
Open=/usr/bin/gnumeric %p &
[video]
Regex=\\.(as[fx]|avi|divx|fl[icv]|m4v|mkv|mov|mp4|mpe?g|mts|ogv|qt|ra?m|ts|vob|webm|wmv)$
RegexIgnoreCase=true
Open=/usr/bin/mplayer %p &
#####End custom stuff###
--
There are 2 types of people in this world
1) Those who can extrapolate from incomplete data
reply other threads:[~2024-12-31 13:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=MTAwMDAwMy53ZG5lc2RheQ.1735652425@quikprotect \
--to=waltdnes@waltdnes.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox