# Mailcap - MIME type handlers for neomutt and other mail clients # Using path-shim to ensure nix paths are available # HTML - terminal inline view (for auto_view) text/html; ~/dotfiles/bin/path-shim w3m -dump -T text/html %s; copiousoutput # HTML - open in browser text/html; open %s; nametemplate=%s.html # Plain text text/plain; ~/dotfiles/bin/path-shim bat --paging=always --style=plain %s; needsterminal text/plain; ~/dotfiles/bin/path-shim nvim -R %s; needsterminal text/*; ~/dotfiles/bin/path-shim bat --paging=always --style=plain %s; needsterminal text/*; ~/dotfiles/bin/path-shim nvim -R %s; needsterminal # PDF application/pdf; ~/dotfiles/bin/path-shim zathura %s application/pdf; open %s # Images - terminal image/*; ~/dotfiles/bin/path-shim "chafa %s && read -n1 -p 'Press any key...'"; needsterminal image/*; open %s # Video video/*; ~/dotfiles/bin/path-shim iina %s video/*; open %s # Audio audio/*; ~/dotfiles/bin/path-shim 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; ~/dotfiles/bin/path-shim unzip -l %s; copiousoutput application/x-tar; ~/dotfiles/bin/path-shim tar -tvf %s; copiousoutput application/gzip; ~/dotfiles/bin/path-shim tar -tzvf %s; copiousoutput application/x-bzip2; ~/dotfiles/bin/path-shim tar -tjvf %s; copiousoutput # Fallback - open with default macOS app application/*; open %s