Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some simple additions to mc.ext #3939

Open
mc-butler opened this issue Oct 2, 2018 · 2 comments
Open

some simple additions to mc.ext #3939

mc-butler opened this issue Oct 2, 2018 · 2 comments
Labels
area: core Issues not related to a specific subsystem prio: low Minor problem or easily worked around

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3939
Reporter borealcoyote (borealcoyote@….com)
Keywords sc, ogg

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)
@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Oct 2, 2018 at 4:05 UTC (comment 1)

  • Component changed from mc-config-ini to mc-core
  • Description edited

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Oct 2, 2018 at 5:34 UTC

Replying to borealcoyote (#3939):

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]$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues not related to a specific subsystem prio: low Minor problem or easily worked around
Development

No branches or pull requests

1 participant