-
Notifications
You must be signed in to change notification settings - Fork 122
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
Add run command functionality #636
base: master
Are you sure you want to change the base?
Conversation
3bbe2b2
to
d77cfbd
Compare
@jurplel I fixed the compile error. I was using some methods from newer QT API and didn't realize that older versions were supported too. |
First, thanks for taking a hopefully successful stab at this! Second, some questions. Maybe I should figure out how to build qView (i.e. with these changes, on macOS), but maybe it would be easier, and helpful for others, if you could tell us:
|
Also fix tab order in settings
d77cfbd
to
df8e7d7
Compare
Well done, @fkubicek |
Thanks :) So I would prefer to keep it as it is for now. But you can still do what you want, just write a script that does different things. I tried it in Python, it took just a few minutes:
If you call this from qView like this My point is, since you can launch a script, you can do pretty much anything you want from that poin on. |
Agreed.
To be frank, that's like justifying only supporting one custom keyboard shortcut to keep things minimalist and simple. But looking at the Shortcuts tab of qView Preferences reveals the real reason for this limitation: qView has a fixed table of key bindings. I guess I'm used to apps that support an open list of key bindings, such as my IDE. Or IINA, the current best video player on macOS: IINA's key bindings can be mapped to IINA's UI controls, or to any command supported by the underlying video player, mpv. So given the current way qView does key bindings, @fkubicek, it makes sense that you only support the one.
Definitely ugly. The right way is like what IINA does above. But not expecting you to tackle that! One is better than none! Infinitely better if |
Thanks for feedback, I'm glad you like the the way it is now 😁 Let's wait for the final review. |
Great discussion here and great work. Once I find time to make a release again, I would like to adapt it to be closer to @vassudanagunta's suggestion. It would be much more useful for sure. This would also likely come with redesigning the settings page, similar to @jdpurcell's mockup with a sidebar. The settings dialog is already so crowded, it needs an overhaul to get more functionality. I also love IINA and the way that they do things. |
I really like Xee's approach. Side panel opens and it is possible to use GUI to copy/move. It is also possible to press CMD + number without even having the side panel active. I love that this copy/move functionality, in any shape or form, is coming to qView! 🚀 |
This PR adds an action that runs a user-defined command with the path to the currently opened image as an argument. Solves #579
Tested on Win 10 and Kubuntu 22.4