remove workaround for multiple image bug in ST
This commit is contained in:
parent
d361c6899e
commit
000491a150
1 changed files with 3 additions and 3 deletions
|
@ -37,9 +37,9 @@ cached_text() {
|
|||
|
||||
cached_image() {
|
||||
if [ -f "$CACHE" ]; then
|
||||
$CHAFA "$CACHE" && exit 1
|
||||
$CHAFA "$CACHE"
|
||||
else
|
||||
run "$@" | tee -p "$CACHE" | $CHAFA && exit 1
|
||||
run "$@" | tee -p "$CACHE" | $CHAFA
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ mimetest() {
|
|||
;;
|
||||
*/epub+zip) cached_image gnome-epub-thumbnailer -s 1024 "$f" "$CACHE" ;;
|
||||
image/svg+xml) cached_image inkscape --convert-dpi-method=none -o "${CACHE}.png" --export-overwrite -D --export-png-color-mode=RGBA_16 "$f" ;;
|
||||
image/*) $CHAFA "$f" && exit 1 ;;
|
||||
image/*) $CHAFA "$f" ;;
|
||||
*/pdf) cached_image pdftoppm -jpeg -f 1 -singlefile "$f" ;;
|
||||
video/*) cached_image ffmpegthumbnailer -s 0 -i "$f" -o "/dev/stdout" ;;
|
||||
*/vnd.oasis.opendocument.text) cached_text odt2txt "$f" ;;
|
||||
|
|
Loading…
Add table
Reference in a new issue