Flow.Launcher
Flow.Launcher copied to clipboard
Open selected result in quicklook
F1 Opens Quicklook on your selection.
~~Right now it's just a proof of concept.... Logic and features will be added soon™~~
Todo:
- [x] Change preview when selection changes
- [x] Logic to determine what to open
- [x] Add field for Plugin's to use ...and more
Preview:
https://user-images.githubusercontent.com/535299/144653778-e0188ee1-ed1b-4647-92de-5341fced6919.mp4
Does it say what line is triggering this exception?
Nah sorry, that's why I didn't dig into it, I will leave it with you since I want to continue onto other prs. You can replicate the issue right?
Nah sorry, that's why I didn't dig into it, I will leave it with you since I want to continue onto other prs. You can replicate the issue right?
I never got this error. Is this from the CI build?
it's coming from local run in visual studio
Tested with the CI build, it's happening there as well. Simply type 'a' or jpg causes flow to hang indefinitely.
Tested with the CI build, it's happening there as well. Simply type 'a' or jpg causes flow to hang indefinitely.
Found the issue!
If QuickLook is unavailable and Flow tries to open a pipe and gets stuck. Adding a timeout helps but isn't the full solution.
An Async option would be best.
When would quick look not be available? Is it when the file is not an image?
so this needs quicklook installed before can be used? do we want to use Droplex to handle it?
so this needs quicklook installed before can be used? do we want to use Droplex to handle it?
I'm unsure. I originally designed this so it would just work no matter if it was installed or not.
@Flow-Launcher/team any opinions?
I wonder if there is a way we can set QL to stay on top, hide and set window size via the code? This will help make QL usage feel more integrated with flow.
I wonder if there is a way we can set QL to stay on top, hide and set window size via the code? This will help make QL usage feel more integrated with flow.
As far as I can tell there is no API to pragmatically control QuickLook other than simply toggling it and switching files.
https://github.com/QL-Win/QuickLook/issues/557
TODO: need to check if window is open to avoid wasting CPU time.
You can set QL to stay on top on each launch by setting QuickLook.config's attribute TopMost to true
TODO: need to check if window is open to avoid wasting CPU time.
Quicklook author seems to think detecting the window is more cpu time then just sending the pipe and failing. I haven't tested this but it seems logical.
I got the impression from the linked issue the author meant better to check window exists so to avoid wasting CPU, where did you see sending the pipe and failing is better? If failing is better than yeah that would be good.
I got the impression from the linked issue the author meant better to check window exists so to avoid wasting CPU, where did you see sending the pipe and failing is better? If failing is better than yeah that would be good.
You’re correct. I must have misread his intentions.
Closing in favor of #2082