How to get data in the context menu? #1304
-
I found this (#574 (comment)) but I don't know how to get this const { method, parameters, ContextData } = JSON.parse(process.argv[2]);
if (method === "context_menu") {
// do something with the context data
} But the data sent from Flow in the context menu is {
"method": "context_menu",
"parameters": [
null
],
"settings": null
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If I remember correctly, the parameters will be something you sent with the results. There's a optional field of a result called |
Beta Was this translation helpful? Give feedback.
-
Please see Flow-Launcher/docs#49 for an example of Context Menu being used. |
Beta Was this translation helpful? Give feedback.
Please see Flow-Launcher/docs#49 for an example of Context Menu being used.