QuickLook does not update when selected item changes
When the selected item changes, the QuickLook-preview does not update.
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.98. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
Currently it does not work this way. If you change selection and QuickLook is active, you want to preview it, if you change selection and QuickLook is not active, you simply changed selection. The problem is, we don't know if Quicklook is active or not, so we don't know if we have to update QuickLook or not.
from Discord
- One Solution would be to ask the QuickLook developer for a
update-command, which only updates an existing window. But for this to work, we would need to send for every selection change an update-command to QuickLook. - I'm sure there are some Windows apis, which can enumerate the windows and we can check if the QuickLook window is there. This is definitely not my filed of expertise 😃.
These are the 2 solutions, I can think of.
The QuickLook.App.PipeMessages.Switch message will not create a new window when no preview is visible: https://github.com/QL-Win/QuickLook/blob/master/QuickLook/ViewWindowManager.cs#L108-L111.
- One Solution would be to ask the QuickLook developer for a
update-command, which only updates an existing window. But for this to work, we would need to send for every selection change an update-command to QuickLook.- I'm sure there are some Windows apis, which can enumerate the windows and we can check if the QuickLook window is there. This is definitely not my filed of expertise 😃.
These are the 2 solutions, I can think of.
@lampenlampen do you want to see if you can get one of those solutions to work?
Still an issue, merging with #6540.