Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Since 1.7.0, ranger supports video previews. More generally, you can define rules in the
scope.sh configuration file to convert any file type into an image and display that image as a preview with
Video previews are disabled by default. To turn them on:
w3mimgdisplay. It's used to draw images into the terminal. On archlinux, the package is called "w3m", on debian it's "w3m-img"
ffmpegthumbnailer. It's used to generate a thumbnail of a video.
- Get a recent
scope.shconfig file, e.g. by typing
- Uncomment the video rule in
scope.sh, inside the
handle_imagefunction (search for
ffmpegthumbnailerif you can't find it).
- Get an
ranger --copy-config=rc) and change the line with
set preview_scriptto point to your custom