+ imgPreviewer.sh

This commit is contained in:
committer@tuxwarrior
2026-02-27 13:36:56 -05:00
parent 5e410428e5
commit a1040ec4ac
2 changed files with 18 additions and 11 deletions

View File

@@ -29,11 +29,13 @@ set cursorpreviewfmt "\033[7;2m"
# ctpv
# https://github.com/NikitaIvanovV/ctpv
set sixel true
#set preview true
set preview true
set previewer imgPreviewer.sh
#set previewer ctpv
#set cleaner ctpvclear
&ctpv -s $id
&ctpvquit $id
#&ctpv -s $id
#&ctpvquit $id
# --------------------
# map
@@ -179,11 +181,3 @@ cmd yb :yank-basename
# misc
cmd edit $nano "$fx"
# preview image files
file="$1"
case "$file" in
*.png|*.jpg|*.jpeg|*.webp)
img2sixel "$file"
;;
esac