Ranger: add a config option to not preview images over network or depending on the filesize

Created on 4 Nov 2017  路  4Comments  路  Source: ranger/ranger

I'd really like ranger to have an option so it doesn't display images larger than xMiB in size or in certain directories.

ISSUE TYPE

  • Improvement/feature request

EXPECTED BEHAVIOR

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.

CURRENT BEHAVIOR

Currently it displays previews for files every size, even when I have a NASA photo between my low resolution memes.

CONTEXT

I would like to have a faster image preview experience with ranger, especially in folders with files larger than a few MiB.

POSSIBLE SOLUTIONS

see "expected behaviour" above.

Most helpful comment

You can use the setlocal command to disable image previews in certain pre-defined directories.

All 4 comments

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 :)

Was this page helpful?
0 / 5 - 0 ratings