aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Mario <marioortizmanero@gmail.com>2020-06-11 15:15:54 +0200
committerGravatar GitHub <noreply@github.com>2020-06-11 18:45:54 +0530
commit5a565675c0dca248915b048fc2c6bda7600d905e (patch)
tree36d0a87e265e1cbfef66913eb70990631ae42bce
parent1f22da2994bda1fb02fec884558343d7b8207e06 (diff)
downloadnnn-5a565675c0dca248915b048fc2c6bda7600d905e.tar.gz
Sane tree defaults and viu support (#649)
-rwxr-xr-xplugins/preview-tui4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/preview-tui b/plugins/preview-tui
index 45beac5..fafee76 100755
--- a/plugins/preview-tui
+++ b/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