]> Sergey Matveev's repositories - nnn.git/commitdiff
Sane tree defaults and viu support (#649)
authorMario <marioortizmanero@gmail.com>
Thu, 11 Jun 2020 13:15:54 +0000 (15:15 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2020 13:15:54 +0000 (18:45 +0530)
plugins/preview-tui

index 45beac51a4f2238bc395108e24dc6ae667a37fda..fafee764660bfcaaf358141eb05c788349729865 100755 (executable)
@@ -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