torum / Image-viewer

A cross-platform, simple and minimum, yet configurable photo viewer/slideshow/digital signage app for Windows, Linux, and Mac.
https://torum.github.io/Image-viewer/
MIT License
92 stars 11 forks source link

Add support for pipe #20

Open baanan opened 2 years ago

baanan commented 2 years ago

ls -n | rg foo | ImageViewer

Currently, this just opens the application's image picker, but it would be nice for this to open the files as an album. This would be useful for searching for some files with something like grep and then opening them.

baanan commented 2 years ago

I just noticed that I'm an absolute Powershell noob and the same effect could just be accomplished with ImageViewer (ls -n | rg foo), but it would still be nice to have.

torum commented 1 year ago

I'm really really sorry for the really late reply. And thank you very much for your feedback.

I learned a new thing too. I haven't even thought about using rg with ImageViewer. One possibility is that an option to pass pattern-matching or regex through command-line args and do the matching inside ImageViewer... It's nice to have. Agreed. But no promises..

Thank you very much.