diff --git a/dots/lf/lfrc b/dots/lf/lfrc index 9aeda5d..0de7cb3 100644 --- a/dots/lf/lfrc +++ b/dots/lf/lfrc @@ -179,3 +179,11 @@ cmd yb :yank-basename # misc cmd edit $nano "$fx" + +# preview image files +file="$1" +case "$file" in + *.png|*.jpg|*.jpeg|*.webp) + img2sixel "$file" + ;; +esac