diff --git a/plugins/preview-tui b/plugins/preview-tui index dcdabec2..7547a083 100755 --- a/plugins/preview-tui +++ b/plugins/preview-tui @@ -201,7 +201,7 @@ preview_file () { elif [ -d "$1" ]; then cd "$1" || return if exists tree; then - fifo_pager tree -L 3 --dirsfirst -C -F --noreport -i + fifo_pager tree --filelimit "$(find . -maxdepth 1 | wc -l)" -L 3 -C -F --dirsfirst --noreport elif exists exa; then exa -G --colour=always 2>/dev/null else diff --git a/plugins/preview-tui-ext b/plugins/preview-tui-ext index 4e9ac90d..ebd2415a 100755 --- a/plugins/preview-tui-ext +++ b/plugins/preview-tui-ext @@ -227,7 +227,7 @@ preview_file() { # shellcheck disable=SC2012 ls -F --group-directories-first | head -n "$((lines - 3))" | "$(dirname "$0")"/.iconlookup -l "$cols" -B "$BSTR" -b " " elif exists tree; then - fifo_pager tree -L 3 --dirsfirst -C -F --noreport -i + fifo_pager tree --filelimit "$(find . -maxdepth 1 | wc -l)" -L 3 -C -F --dirsfirst --noreport elif exists exa; then exa -G --group-directories-first --colour=always 2>/dev/null else