From e74a59ddd68b989f314d0fc804af9c4b069e70d9 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 6 Sep 2025 16:12:31 +0900 Subject: modified lf/lfrc, modified lf/scope --- mac/.config/lf/scope | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mac/.config/lf/scope') diff --git a/mac/.config/lf/scope b/mac/.config/lf/scope index 9ea395f..c5d7c3e 100755 --- a/mac/.config/lf/scope +++ b/mac/.config/lf/scope @@ -52,8 +52,9 @@ text/troff) man ./ "$1" | col -b ;; text/* | */xml | application/json | application/x-ndjson) bat -p --theme ansi --terminal-width "$(($4 - 2))" -f "$1" ;; audio/*) mediainfo "$1" || exit 1 ;; video/* | application/octet-stream | application/vnd.rn-realmedia) - CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)" - [ ! -f "$CACHE" ] && ffmpegthumbnailer -i "$1" -o "$CACHE.jpg" -s 0 -q 5 + # CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)" + # [ ! -f "$CACHE" ] && + ffmpegthumbnailer -i "$1" -o "$CACHE.jpg" -s 0 -q 5 image "$CACHE.jpg" "$2" "$3" "$4" "$5" "$1" ;; */pdf) -- cgit v1.2.3