mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
preview-tui: restore tree view (#972)
This commit is contained in:
parent
0c88d1c210
commit
4ebc396250
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue