mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
add uberzug back
This commit is contained in:
parent
ef1ef56461
commit
7571d172aa
|
@ -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" &
|
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
|
elif [ "$NNN_TERMINAL" = "wezterm" ] && [[ "$NNN_PREVIEWIMGPROG" == +(|imgcat) ]]; then
|
||||||
wezterm imgcat "$3" &
|
wezterm imgcat "$3" &
|
||||||
|
elif exists ueberzug && [[ "$NNN_PREVIEWIMGPROG" == +(|ueberzug) ]]; then
|
||||||
|
ueberzug_layer "$1" "$2" "$3" && return
|
||||||
elif exists "$NNN_PREVIEWIMGPROG"; then
|
elif exists "$NNN_PREVIEWIMGPROG"; then
|
||||||
"$NNN_PREVIEWIMGPROG" "$3" &
|
"$NNN_PREVIEWIMGPROG" "$3" &
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue