public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Heads up: latest ~/.config/mc/mc.ext.ini change
@ 2024-12-31 13:40 Walter Dnes
  0 siblings, 0 replies; only message in thread
From: Walter Dnes @ 2024-12-31 13:40 UTC (permalink / raw
  To: Gentoo Users List

  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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-31 13:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-31 13:40 [gentoo-user] Heads up: latest ~/.config/mc/mc.ext.ini change Walter Dnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox