]> Sergey Matveev's repositories - nnn.git/commitdiff
Scale up kitty previews
authorLuuk van Baal <luukvbaal@gmail.com>
Tue, 28 Jun 2022 10:43:35 +0000 (12:43 +0200)
committerLuuk van Baal <luukvbaal@gmail.com>
Tue, 28 Jun 2022 10:43:35 +0000 (12:43 +0200)
plugins/preview-tui

index 5d088eddca13c36faeafc588050e450764d46050..218a647bb209aed9baf264052e069cdd5ebf8559 100755 (executable)
@@ -411,7 +411,7 @@ image_preview() {
     clear
     if [ "$TERMINAL" = "kitty" ]; then
         # Kitty terminal users can use the native image preview method
-        kitty +kitten icat --silent --place "$1"x"$2"@0x0 --transfer-mode=stream --stdin=no "$3" &
+        kitty +kitten icat --silent --scale-up --place "$1"x"$2"@0x0 --transfer-mode=stream --stdin=no "$3" &
     elif exists ueberzug; then
         ueberzug_layer "$1" "$2" "$3" && return
     elif exists catimg; then