fix and improve lf preview
This commit is contained in:
parent
b6223ca0c0
commit
3684ee2853
|
@ -1,3 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
kitty +kitten icat --clear --transfer-mode file
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ image() {
|
|||
h=$3
|
||||
x=$4
|
||||
y=$5
|
||||
kitty +kitten icat --transfer-mode file --place "${w}x${h}@${x}x${y}" -- "$f" && exit 1
|
||||
kitty +kitten icat --clear --stdin no --silent --transfer-mode memory --place "${w}x${h}@${x}x${y}" "$f" >/dev/tty && exit 1
|
||||
chafa "$f" -f symbols -s "$((w-2))x$h" && exit 1
|
||||
echo -e "\e[31mImage previewer not installed\e[0m"
|
||||
return 1
|
||||
|
|
Loading…
Reference in New Issue