torum/Image-viewer

Add support for pipe

baanan opened this issue · 2 comments

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.

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

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.