I'd really like ranger to have an option so it doesn't display images larger than xMiB in size or in certain directories.
Maybe have a variable image_preview_maxsize which you can set to "1M" or "500K" as well as a variable image_preview_exclude with the filename of a config file (maybe rsync-exclude style?) or a comma separated list of dirs.
Shouldn't list the subdirs either.
Currently it displays previews for files every size, even when I have a NASA photo between my low resolution memes.
I would like to have a faster image preview experience with ranger, especially in folders with files larger than a few MiB.
see "expected behaviour" above.
You can use the setlocal command to disable image previews in certain pre-defined directories.
Thanks, does that apply to subdirectories, too?
Depends on how exactly you use it. It's explained in the man page.
okay, still doesn't solve the maxsize feature request, which I'd like to keep open if that's okay with you :)
Most helpful comment
You can use the
setlocalcommand to disable image previews in certain pre-defined directories.