47 lines
1.3 KiB
Text
47 lines
1.3 KiB
Text
# Mailcap - MIME type handlers for neomutt and other mail clients
|
|
|
|
# HTML - terminal inline view (for auto_view)
|
|
text/html; w3m -dump -T text/html %s; copiousoutput
|
|
# HTML - open in browser
|
|
text/html; open %s; nametemplate=%s.html
|
|
|
|
# Plain text
|
|
text/plain; TERM=xterm-256color less %s
|
|
text/*; TERM=xterm-256color less %s
|
|
|
|
# PDF
|
|
application/pdf; zathura %s
|
|
application/pdf; open %s
|
|
|
|
# Images - terminal (kitty protocol works in ghostty)
|
|
image/*; kitten icat --clear %s
|
|
image/*; open %s
|
|
|
|
# Video
|
|
video/*; iina %s
|
|
video/*; open %s
|
|
|
|
# Audio
|
|
audio/*; mpv --no-video %s
|
|
audio/*; open %s
|
|
|
|
# Microsoft Office - Word
|
|
application/msword; open %s
|
|
application/vnd.openxmlformats-officedocument.wordprocessingml.document; open %s
|
|
|
|
# Microsoft Office - Excel
|
|
application/vnd.ms-excel; open %s
|
|
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; open %s
|
|
|
|
# Microsoft Office - PowerPoint
|
|
application/vnd.ms-powerpoint; open %s
|
|
application/vnd.openxmlformats-officedocument.presentationml.presentation; open %s
|
|
|
|
# Archives - show contents
|
|
application/zip; unzip -l %s; copiousoutput
|
|
application/x-tar; tar -tvf %s; copiousoutput
|
|
application/gzip; tar -tzvf %s; copiousoutput
|
|
application/x-bzip2; tar -tjvf %s; copiousoutput
|
|
|
|
# Fallback - open with default macOS app
|
|
application/*; open %s
|