xyb3rt / sxiv

Simple X Image Viewer
GNU General Public License v2.0
1.82k stars 261 forks source link

Feature wish: Collapsed thumbnail view for subdirectories - show one thumb per dir/subdir #418

Open klartext opened 4 years ago

klartext commented 4 years ago

When using

sxiv -r <dirname(s)>

all thumbnails are presented in the one big overview.

A collapsed view would be: show only the thumbnail of one image from each directory/subdirectory. Then one thumbnail stands for all images of a directory.

That is opposed to the complete thumbnail view, as is provided at the moment. It's also different than what was asked for in #384, which is just a variation of the standard thumbnail-view.

Use-case: each dir/subdir contains already collections of grouped files, so just one thumb can be shown representatively for the whole directory.

klartext commented 4 years ago

Opening that representative thumb would then display the contents of the directory it represents.

Not sure if the current dir is handled like any other dir, and so even the current dir is represented by one thumb. And only when entering the thumb, details are shown. But subdirs show up only as one thumb. Would make sense to handle it this way. Because with too much files in a dir, that contains subdirs, the thumbs for the subdirs might be not easily found. If curdir is also represented by one thumb, better overview is possible.