Flow.Launcher
Flow.Launcher copied to clipboard
Allow plugins to capture hotkey actions on query window results
Goal: Allow plugins to capture hotkey presses on query window results, such as Ctrl+P, F1, Space, Ctrl+Backspace, Up or Down.
This information is then passed onto each plugin, which will allow them to do some action based on the hotkey and information supplied.
This is a proof of concept PR, using F1 key press as an example to demonstrate when F1 is pressed on a result, the information of the selected result is translated to a path which is then passed onto each plugin. Only if the plugin inherits IPathSelected, will it be able to capture and use the path and hotkey information to do something further. This example uses Explorer plugin, and works with JsonRPC plugins (i.e. Python, TS, JS and etc).
What success looks like:
- Allow plugin to utilise QuickLook from #859 and previews should work on Up, Down or F1 hotkeys on the selected result.
- Allow Explorer or Everything plugin to utilise Ctrl+C on a selected result that is a file/folder and have it copied on to clipboard.
- JsonRPC plugins to also utilise the new feature.
@taooceros please have a look at this concept when you can. This will allow any plugin to use hotkeys not just the default ones. Feeds into the Quicklook work.