nnn

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

commit 7571d172aa46cfe9820f99f7e8686fe30aaeead9
parent ef1ef5646118bbb76978636033483b27381743f7
Author: Daniel Bretoi <daniel@otherware.org>
Date:   Sun, 15 Sep 2024 11:45:29 +0700

add uberzug back

Diffstat:
Mplugins/preview-tui | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/plugins/preview-tui b/plugins/preview-tui @@ -450,6 +450,8 @@ image_preview() { kitty +kitten icat --silent --scale-up --place "$(($1 - 1))x$(($2 - 1))"@0x0 --transfer-mode=memory --stdin=no "$3" & elif [ "$NNN_TERMINAL" = "wezterm" ] && [[ "$NNN_PREVIEWIMGPROG" == +(|imgcat) ]]; then wezterm imgcat "$3" & + elif exists ueberzug && [[ "$NNN_PREVIEWIMGPROG" == +(|ueberzug) ]]; then + ueberzug_layer "$1" "$2" "$3" && return elif exists "$NNN_PREVIEWIMGPROG"; then "$NNN_PREVIEWIMGPROG" "$3" & else