mirror of
https://github.com/jarun/nnn.git
synced 2025-02-17 14:54:36 +00:00
preview-tui: ls flags
This commit is contained in:
parent
4ebc396250
commit
7a7fd5fcab
|
@ -205,7 +205,7 @@ preview_file () {
|
||||||
elif exists exa; then
|
elif exists exa; then
|
||||||
exa -G --colour=always 2>/dev/null
|
exa -G --colour=always 2>/dev/null
|
||||||
else
|
else
|
||||||
fifo_pager ls --color=always
|
fifo_pager ls -F --directories-first --color=always
|
||||||
fi
|
fi
|
||||||
elif [ "${encoding#*)}" = "binary" ]; then
|
elif [ "${encoding#*)}" = "binary" ]; then
|
||||||
if [ "${mimetype%%/*}" = "image" ]; then
|
if [ "${mimetype%%/*}" = "image" ]; then
|
||||||
|
|
|
@ -231,7 +231,7 @@ preview_file() {
|
||||||
elif exists exa; then
|
elif exists exa; then
|
||||||
exa -G --group-directories-first --colour=always 2>/dev/null
|
exa -G --group-directories-first --colour=always 2>/dev/null
|
||||||
else
|
else
|
||||||
fifo_pager ls --group-directories-first --color=always
|
fifo_pager ls -F --group-directories-first --color=always
|
||||||
fi
|
fi
|
||||||
elif [ "${encoding#*)}" = "binary" ]; then
|
elif [ "${encoding#*)}" = "binary" ]; then
|
||||||
if [ "${mimetype%%/*}" = "image" ]; then
|
if [ "${mimetype%%/*}" = "image" ]; then
|
||||||
|
|
Loading…
Reference in a new issue