mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
nuke: add lowdown as alternative markdown viewer (#524)
See https://kristaps.bsd.lv/lowdown/
This commit is contained in:
parent
ddaddcaf21
commit
7cc46510e3
|
@ -47,7 +47,7 @@
|
||||||
# log: vi
|
# log: vi
|
||||||
# torrent: rtorrent, transmission-show
|
# torrent: rtorrent, transmission-show
|
||||||
# odt|ods|odp|sxw: odt2txt
|
# 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
|
# htm|html|xhtml: w3m, lynx, elinks
|
||||||
# json: jq, python (json.tool module)
|
# json: jq, python (json.tool module)
|
||||||
# Multimedia by mime:
|
# Multimedia by mime:
|
||||||
|
@ -209,6 +209,9 @@ handle_extension() {
|
||||||
if which glow >/dev/null 2>&1; then
|
if which glow >/dev/null 2>&1; then
|
||||||
glow -sdark "${FPATH}" | less -R
|
glow -sdark "${FPATH}" | less -R
|
||||||
exit 0
|
exit 0
|
||||||
|
elif which lowdown >/dev/null 2>&1; then
|
||||||
|
lowdown -Tterm "${FPATH}" | less -R
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue