artemsen / swayimg

Image viewer for Wayland
MIT License
380 stars 31 forks source link

Feature request: Detect images in the same directory as the current image by default #26

Closed Zeioth closed 2 years ago

Zeioth commented 2 years ago

Currently, if I want to use pgDown/Up to view my images, I need to open swayimg like:

swayimg image1 image2...
swayimg script-that-passes-directory-images.sh

Which is ok. But since this is a common enough case of use, it would be important to have it detecting same directory images by default, to make it user friendly.

artemsen commented 2 years ago

Sorry, I didn't understand the idea =) What does "detecting same directory images" mean? Could you give an example?

Zeioth commented 2 years ago

Current behavior:

Expected behavior:

artemsen commented 2 years ago

There are so many "what if" =)

Of course, we could add new command line arguments to control such behavior. It will end up with own find tool =) Sorry, I still believe in Unix philosophy: Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new "features".

Zeioth commented 2 years ago

This is literally the only image program I've ever used without such an elemental usability feature, but I guess anyone can fork it. Thanks.

artemsen commented 2 years ago

Ok, I give up =) Let's do it in this way: if no input files were specified in command line, swayimg will iterate through all files in the current directory.