diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2025-12-26 08:39:34 -0300 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2025-12-26 08:39:34 -0300 |
| commit | a66a61a418ba5576e90d66dc948c4b15a7303cf9 (patch) | |
| tree | a71e37aa86aeb75a49c368fb2f9fa01f6cface26 | |
| parent | 646de3013b9cf25056ab5239b2818e55cf807c58 (diff) | |
| download | ranger-master.tar.gz ranger-master.tar.bz2 | |
| -rw-r--r-- | config.dot/ranger/rc.conf.link | 22 | ||||
| -rwxr-xr-x | config.dot/ranger/scope.sh.link | 2 | ||||
| -rw-r--r-- | dependencies/debian | 2 |
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 |
