Fix lf sixel
This commit is contained in:
parent
e662d60893
commit
75cebed2e4
|
@ -40,6 +40,7 @@ sudo update-locale
|
|||
# lf settings
|
||||
sudo cp lf_preview.sh /usr/local/bin
|
||||
cat << 'EOF' > lfrc
|
||||
set sixel true
|
||||
set previewer lf_preview.sh
|
||||
cmd trash %set -f; mv $fx ~/.trash
|
||||
map <delete> trash
|
||||
|
|
|
@ -8,10 +8,10 @@ case "$MIME" in
|
|||
*application/pdf*)
|
||||
pdftotext "$1" -
|
||||
;;
|
||||
# .jpeg
|
||||
# *image/jpeg*)
|
||||
# sxiv "$1"
|
||||
# ;;
|
||||
# .jpeg, png etc.
|
||||
*image/*)
|
||||
chafa -f sixel -s "$2x$3" "$1"
|
||||
;;
|
||||
# .7z
|
||||
*application/x-7z-compressed*)
|
||||
7z l "$1"
|
||||
|
|
Loading…
Reference in New Issue