phdru.name / Software / dotfiles / mc

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

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

#Type/^PostScript
#Open=libreoffice %f &
#View=%view{ascii} ps2ascii %f
#
# RTF
#Regex/i/\.rtf$
#Open=fbreader %f &
#View=%view{ascii} catdoc %f
#
#Regex/i/\.(doc|wri)$
#Include=msoffice-doc
#
Regex/i/\.docx$
Edit=libreoffice %f &
Open=libreoffice %f &
View=%view{ascii} docx2txt %f - | iconv.py -f utf-8

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

Type/^Microsoft\ Office\ Document
Include=msoffice-doc

Regex/i/\.xlsx$
Include=msoffice-xlsx

Type/^Microsoft\ Excel\ 2007+
Include=msoffice-xlsx

#Type/^Composite\ Document\ File
#Include=msoffice-doc
#
# ftplist
Regex/\.ftplist$
Open=%cd %p#ftplist

# Play list
Regex/i/\.(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

#Regex/i/\.tiff?$
#Open=xview %f
#
Shell/.torrent
Open=%cd %p/torrent://

Regex/i/\.xml$
Include=xml

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.html. It was generated on Sun, 16 Jun 2024 10:04:51 GMT from CheetahTemplate mc.ext.tmpl. Some rights are reserved. Read more about technical aspects of the site.