Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: /path/filename of current image to stdout #110

Open
Lew-Rockwell-Fan opened this issue Sep 10, 2021 · 3 comments
Open

Feature Request: /path/filename of current image to stdout #110

Lew-Rockwell-Fan opened this issue Sep 10, 2021 · 3 comments

Comments

@Lew-Rockwell-Fan
Copy link

It would real handy if Viewnior would echo the full /path/filename to stdout every time it loads, or, in the case of corrupt images, tries to load, an image. People who don't wrap Viewnior in a script wouldn't even see the difference but it sure would help those of us who want to tinker with it. Something like:
loaded: /path/to/image.jpg
corrupt: /path/to/bad-image.png

@hellosiyan
Copy link
Owner

@Lew-Rockwell-Fan Thanks for the idea. I'm curious to learn more about your use case - why would you wrap it in a script? Are there other viewers better suited for this purpose, possibly feh as an example?

@Lew-Rockwell-Fan
Copy link
Author

"why would you wrap it in a script?"
In my case, to facilitate a custom context menu that needs a way to know the /path/filename of the image shown. But really, there are all sorts of potential reasons. Maybe, for example, somebody would want to change the screen brightness or pause video players or change what an OSD is showing while viewing images, and reverse the changes on exit. Or invoke it with different options without having to type them in.

@Lew-Rockwell-Fan
Copy link
Author

Lew-Rockwell-Fan commented Nov 26, 2021

"other viewers better suited for this purpose, possibly feh"
Overall, no. Feh is great & my second choice. If it weren't for one limitation, I'd prefer it to Viewnior, but it won't show a gif. There are things to be said in favor of many viewers - honorable mention to Nomacs - but they all have limitations. Most are resource hogs. Viewnior's only flaw is that there is no direct way to control the context menu & no simple way to get around that by informing either a wrapper or an independent external program (either of which can provide an alternate menu) of the /path/filename of the image shown (or not shown in the case of defective files).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants