preview-tui: restore tree view (#972)

This commit is contained in:
luukvbaal 2021-04-27 21:28:38 +02:00 committed by GitHub
parent 0c88d1c210
commit 4ebc396250
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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