浏览代码

nuke: add lowdown as alternative markdown viewer (#524)

See https://kristaps.bsd.lv/lowdown/
master
lvgx GitHub 4 年前
父节点
当前提交
7cc46510e3
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      plugins/nuke

+ 4
- 1
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
;;



正在加载...
取消
保存