Previews don't change when context menu result is selected #4588
DavidGBrett
started this conversation in
General
Replies: 1 comment 1 reply
|
The context menu was meant to behave as additional menus items on a result, if need to show what conversion would look like for example, I think it's better to redirect to the main results panel (maybe via change query call)? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Right now the preview panel doesn't react to a context menu result.
You can try this using the hello world plugin (https://github.com/Flow-Launcher/Flow.Launcher.Plugin.HelloWorldPython)
The preview will not change despite the context menu result having a different title and subtile
This is probably intended behavior as it would be reasonable to have the preview to match the original result in this case - usually context menu results aren't content themselves - the preview then lets you keep the "context" visible.
Though I don't believe this is documented anywhere so it may be a bit confusing API wise
However there could be cases where one would want a context menu result to show a preview (perhaps some file converter plugin showing a preview of what the converted type would look like?)
This could involve adding another flag to the result class to toggle this behavior, but this also raises the question of whether context menu results should have a separate class if they are going to have separate behavior (normal results could be still accepted for compatibility)
Nothing concrete but just want to open this as a discussion and to document this at least in some place.
All reactions