Flow-Launcher / Flow-Launcher/docs
For Python plugins, what is the data argument passing in the 'context_menu' function?
- Dominant language
- Svelte
- Stars
- 22
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
For some reason all of the plugin references (https://www.flowlauncher.com/docs/#/py-plugin-references) seem to implement a different API than the hello world plugin. It looks like because they're porting from Wox using the flox library, maybe?
So if I am opening a context menu, I need to pass through some kind of unique ID for whichever query result was selected. In the Steam plugin (https://github.com/Garulf/Steam-Search/blob/main/plugin/main.py) they're passing a 'context' variable through the 'add_item' method and getting that data in the data array, first index (data[0]).
In the Hello World example though, how can I get a UID for whichever query item was selected when entering the context menu?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.