浏览代码

Sane tree defaults and viu support (#649)

master
Mario GitHub 5 年前
父节点
当前提交
5a565675c0
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      plugins/preview-tui

+ 3
- 1
plugins/preview-tui 查看文件

@@ -142,7 +142,7 @@ preview_file () {
if [ -d "$1" ]; then
cd "$1" || return
if exists tree; then
fifo_pager tree
fifo_pager tree -L 3 -F
elif exists exa; then
fifo_pager exa -G --colour=always 2>/dev/null
else
@@ -156,6 +156,8 @@ preview_file () {
"$1" &
elif exists catimg; then
catimg "$1"
elif exists viu; then
viu -t "$1"
else
fifo_pager print_bin_info "$1"
fi


正在加载...
取消
保存