phdru.name / Software / dotfiles / mc

# My *additions* to Midnight Commander 4 extension file
#
# Text version here
#
# Generated by gvim :runtime syntax/2html.vim
#
### phd
# For MC version 4

[Berkeley DB 1.85]
Type=^Berkeley\ DB\ 1.85
View=%view{ascii} db_dump185 -p %f

# [Compiled HTML]
#Shell=.chm
#Open=fbreader %f &
#
## [DejaVu]
#Shell=.djvu
#Open=djview %f &
#
[EPUB]
Shell=.epub
Open=fbreader %f &

[FB2]
Shell=.fb2
Open=fbreader %f &
View=%view{ascii} xsltproc /usr/local/src/distr/FictionBook/FB2_2_txt_ru.xsl %f

#[PostScript]
#Type=^PostScript
#Open=libreoffice %f &
#View=%view{ascii} ps2ascii %f

#[RTF]
#Regex=\.rtf$
#Open=fbreader %f &
#View=%view{ascii} catdoc %f

#[doc-wri]
#Regex=\.(doc|wri)$
#Include=msoffice-doc

[docs]
Regex=\.docx$
Edit=libreoffice %f &
Open=libreoffice %f &
View=%view{ascii} docx2txt %f - | iconv.py -f utf-8

#[Composite Document File]
#Type=^Composite\ Document\ File
#Include=msoffice-doc

[Microsoft Word 2007]
Type=^Microsoft\ Word\ 2007+
Include=msoffice-doc

[Microsoft Office Document]
Type=^Microsoft\ Office\ Document
Include=msoffice-doc

[xlsx]
Regex=\.xlsx$
Include=msoffice-xlsx

[/^Microsoft Excel 2007+]
Include=msoffice-xlsx

[ftplist]
Regex=\.ftplist$
Open=%cd %p#ftplist

[Play list]
Regex=\.(m3u8?|pls)$
Include=audio

[Lossless audio]
Regex=\.(cue|aac|ac3|ape|flac|wv|mka)$
Include=audio

## Object
#Shell=.o
#View=%view{ascii} nm %f
#Disassemble=%view{ascii} objdump -d -r %f
#
## Python
#Shell=.py
#Open=python %f
#View=%view{ascii} cat %f
#Compile=compyle %s
#Icon=snake.xpm

[Conda/python packages]
Regex=\.(conda|egg|whl)$
Include=zip

# TIFF
#Regex=\.tiff?$
#Open=xview %f

[torrent]
Shell=.torrent
Open=%cd %p/torrent://

[xml-ext]
Regex=\.xml$
Include=xml

[xml-type]
Type=^XML\ *(1\.0\ *)?document
Include=xml

[LRE/Flibusta INPX]
Regex=\.(inpx)$
Include=zip

[Include/audio]
#Open=[ "`audtool --get-volume`" -eq 0 ] && (audacious & sleep 3); audtool --playlist-clear; case %f in *.m3u8?) while read song; do audtool --playlist-addurl "$song"; done < %f ;; *) audtool --playlist-addurl %f ;; esac; audtool --playback-play
#Open=mplayer %f &
Open=deadbeef %f &
View=%view{ascii} cat %f

[Include/msoffice-doc]
Edit=libreoffice %f &
Open=libreoffice %f &
View=%view{ascii} catdoc %f

[Include/msoffice-xlsx]
Edit=libreoffice %f &
Open=libreoffice %f &
View=%view{ascii} xlsx2csv %f | iconv.py -f utf-8

#[Include/video]
#Open=mplayer %f &
#View=%view{ascii} cat %f

[Include/xml]
Open=%cd %p/xml://

[Include/zip]
Open=%cd %p/uzip://
View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip

### /phd

This is the page https://phdru.name/Software/dotfiles/mc/mc.ext.ini.html. It was generated on Wed, 01 May 2024 15:31:33 GMT from CheetahTemplate mc.ext.ini.tmpl. Some rights are reserved. Read more about technical aspects of the site.