aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar lvgx <l@vgx.fr>2020-04-17 04:41:08 +0200
committerGravatar GitHub <noreply@github.com>2020-04-17 08:11:08 +0530
commit7cc46510e3656416ecdf2746a83bd081f0ebddf3 (patch)
treeae6ca8d516bad683aceca7436ce608854219d947
parentddaddcaf218ea2b1600e72e344e8c8720cd03c97 (diff)
downloadnnn-7cc46510e3656416ecdf2746a83bd081f0ebddf3.tar.gz
nuke: add lowdown as alternative markdown viewer (#524)
See https://kristaps.bsd.lv/lowdown/
-rwxr-xr-xplugins/nuke5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/nuke b/plugins/nuke
index 50840fe..ca6a2b7 100755
--- a/plugins/nuke
+++ b/plugins/nuke
@@ -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
;;