plugins/nuke | 11 ++++++++++- diff --git a/plugins/nuke b/plugins/nuke index d0223c37995a1e53f6b260f31253dbfdd27f73eb..e1c1a229406850f4bbe9f9851cc31300413b3e8c 100755 --- a/plugins/nuke +++ b/plugins/nuke @@ -45,6 +45,7 @@ # pdf: zathura (GUI), pdftotext, mutool, exiftool # audio: mocplay (nnn plugin using MOC), mpv, mediainfo, exiftool # torrent: rtorrent, transmission-show # odt|ods|odp|sxw: odt2txt +# md: glow (https://github.com/charmbracelet/glow) # htm|html|xhtml: w3m, lynx, elinks # json: jq, python (json.tool module) # Multimedia by mime: @@ -164,6 +165,14 @@ odt2txt "${FPATH}" | less -R exit 0 fi exit 1;; + + ## Markdown + md) + if which glow >/dev/null 2>&1; then + glow -sdark "${FPATH}" | less -R + exit 0 + fi + ;; ## HTML htm|html|xhtml) @@ -375,7 +384,7 @@ ## Text text/* | */xml) vi "${FPATH}" - exit 1;; + exit 0;; ## Syntax highlight # if [[ "$( stat --printf='%s' -- "${FPATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then # exit 2