aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2025-12-26 08:39:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2025-12-26 08:39:34 -0300
commita66a61a418ba5576e90d66dc948c4b15a7303cf9 (patch)
treea71e37aa86aeb75a49c368fb2f9fa01f6cface26
parent646de3013b9cf25056ab5239b2818e55cf807c58 (diff)
downloadranger-master.tar.gz
ranger-master.tar.bz2
Fix: preview_images_method: switch to ueberzugHEADmaster
-rw-r--r--config.dot/ranger/rc.conf.link22
-rwxr-xr-xconfig.dot/ranger/scope.sh.link2
-rw-r--r--dependencies/debian2
3 files changed, 24 insertions, 2 deletions
diff --git a/config.dot/ranger/rc.conf.link b/config.dot/ranger/rc.conf.link
index b33a6e9..6f4aa91 100644
--- a/config.dot/ranger/rc.conf.link
+++ b/config.dot/ranger/rc.conf.link
@@ -5,13 +5,31 @@
set colorscheme solarized
# Previews
-# See https://github.com/ranger/ranger/wiki/Image-Previews
-# https://github.com/ranger/ranger/wiki/Video-Previews
+#
+# Details at https://github.com/ranger/ranger/wiki/Image-Previews
+# https://github.com/ranger/ranger/wiki/Video-Previews
+#
+# The default w3m method does not work with Alacritty.
+# The alternative ueberzug does work with Alacritty, but only
+# on Xorg (not on Wayland). Details at
+# https://github.com/alacritty/alacritty/issues/1021
+#
+# Other options (not available in Debian, as of 2025-12):
+# https://github.com/atanunq/viu
+# https://github.com/jstkdng/ueberzugpp
+#
+# Additional references:
+# https://github-wiki-see.page/m/ranger/ranger/wiki/Image-Previews
+#
set preview_files true
set preview_images true
set use_preview_script true
#set preview_images_method urxvt
#set preview_images_method mpv
+#set preview_images_method w3m
+#set preview_images_method viu
+#set preview_images_method ueberzugpp
+set preview_images_method ueberzug
set preview_script ~/.config/ranger/scope.sh
# Line numbers
diff --git a/config.dot/ranger/scope.sh.link b/config.dot/ranger/scope.sh.link
index 704e921..3d6a625 100755
--- a/config.dot/ranger/scope.sh.link
+++ b/config.dot/ranger/scope.sh.link
@@ -119,6 +119,7 @@ handle_image() {
# # Thumbnail
# ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6
# exit 1;;
+
# PDF
# application/pdf)
# pdftoppm -f 1 -l 1 \
@@ -129,6 +130,7 @@ handle_image() {
# -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \
# && exit 6 || exit 1;;
+ # Compressed
# Preview archives using the first image inside.
# (Very useful for comic book collections for example.)
# application/zip|application/x-rar|application/x-7z-compressed|\
diff --git a/dependencies/debian b/dependencies/debian
index 16104a1..efd7578 100644
--- a/dependencies/debian
+++ b/dependencies/debian
@@ -10,3 +10,5 @@ highlight
# Media viewers
feh
sxiv
+w3m-img
+ueberzug