Ticket #3939 (new enhancement)

Opened 5 years ago

Last modified 5 years ago

some simple additions to mc.ext

Reported by: borealcoyote Owned by:
Priority: minor Milestone: Future Releases
Component: mc-core Version: master
Keywords: sc, ogg Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description (last modified by andrew_b) (diff)

I found that it was useful to add these to my mc.ext file:

# GNU Spreadsheet Calculator
regex/\.([Ss][Cc])$
	Open=(sc %f)

# a prank, on any file in plain text format, .sc for instance
regex/\.([??][??]...)$
	Open=(tac %f) | rev | nl | most 
# or pipe it through espeak instead of most

# playing ogg vorbis music files
regex/\.([0o][Gg][Gg])$
	Open=(mplayer %f)

Change History

comment:1 Changed 5 years ago by andrew_b

  • Component changed from mc-config-ini to mc-core
  • Description modified (diff)

comment:2 in reply to: ↑ description Changed 5 years ago by andrew_b

Replying to borealcoyote:

I found that it was useful to add these to my mc.ext file:

# GNU Spreadsheet Calculator
regex/\.([Ss][Cc])$
	Open=(sc %f)

This should be done via /usr/libexec/mc/ext.d/doc.sh like other spreadsheet documents processing (ods, xls, xlsx).
And we have the support of case-insensitive file name extensions:

shell/i/\.sc

# playing ogg vorbis music files
regex/\.([0o][Gg][Gg])$
	Open=(mplayer %f)

This is covered by

regex/i/\.og[gax]$
Note: See TracTickets for help on using tickets.