nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3b3ad9ccc6a4f2902a93c14f5a61782bbba43ac7
parent dd07aeb70323c70ae01314df2399afb71ef77780
Author: blissful <blissful@sunsetglow.net>
Date:   Wed, 20 Sep 2023 15:50:58 -0400

Add support for eza as a replacement for exa

Diffstat:
Mplugins/preview-tui | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plugins/preview-tui b/plugins/preview-tui @@ -13,7 +13,7 @@ # - Windows Terminal (https://github.com/Microsoft/Terminal | https://aka.ms/terminal) with WSL, or # - $NNN_TERMINAL set to a terminal (it's xterm by default). # - less or $NNN_PAGER -# - tree or exa or (GNU) ls +# - tree or exa/eza or (GNU) ls # - mediainfo or file # - mktemp # - unzip @@ -350,6 +350,8 @@ preview_file() { 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 + elif exists eza; then # eza is a community fork of exa (exa is unmaintained) + eza -G --group-directories-first --colour=always else fifo_pager ls -F --group-directories-first --color=always fi