phdru.name / Software / dotfiles / mc

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

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

# Python packages
regex/\.(egg|whl)$
        Open=%cd %p/uzip://
        View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view 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

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://

### /phd

This is the page https://phdru.name/Software/dotfiles/mc/mc.ext.html. It was generated on Wed, 01 Dec 2021 14:03:27 GMT from CheetahTemplate mc.ext.tmpl. Some rights are reserved. Read more about technical aspects of the site.