]> Sergey Matveev's repositories - nnn.git/commitdiff
nuke: add lowdown as alternative markdown viewer (#524)
authorlvgx <l@vgx.fr>
Fri, 17 Apr 2020 02:41:08 +0000 (04:41 +0200)
committerGitHub <noreply@github.com>
Fri, 17 Apr 2020 02:41:08 +0000 (08:11 +0530)
See https://kristaps.bsd.lv/lowdown/

plugins/nuke

index 50840fe6e2c7d974b165cbb7d258fc8f424b4267..ca6a2b7862b6b23aacdd84a41d23d02e3b98e86d 100755 (executable)
@@ -47,7 +47,7 @@
 #      log: vi
 #      torrent: rtorrent, transmission-show
 #      odt|ods|odp|sxw: odt2txt
-#      md: glow (https://github.com/charmbracelet/glow)
+#      md: glow (https://github.com/charmbracelet/glow), lowdown (https://kristaps.bsd.lv/lowdown)
 #      htm|html|xhtml: w3m, lynx, elinks
 #      json: jq, python (json.tool module)
 #   Multimedia by mime:
@@ -209,6 +209,9 @@ handle_extension() {
             if which glow >/dev/null 2>&1; then
                 glow -sdark "${FPATH}" | less -R
                 exit 0
+            elif which lowdown >/dev/null 2>&1; then
+                lowdown -Tterm "${FPATH}" | less -R
+                exit 0
             fi
             ;;