-
https://github.com/Zeroto521/Wox.Plugin.Bark/
In such an application, it needs a button to send. The following one is what I want, for a folder we could enter the context_menu and choose to open it at explorer. From the source, we could see def query(self, param: str = '') -> list:
"""
sub class need to override this method
"""
return []
def context_menu(self, data) -> list:
"""
optional context menu entries for a result
"""
return [] For But for PS: Wox seems nothing happened when I tested it. Flow v1.7.2 has a bug about context_menu (deefrawley/Flow.Launcher.Plugin.Currency#9). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Let me take a look on the code. I remember the argument is inside the return json created from python plugin. |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is what you looking for, you can try add "ContextData" in response of query(), after that, when you enter context menu mode, the {
"result":[
{
"Title":"title1"
"SubTitle":"subtitle1",
"IcoPath":"assets/favicon.ico",
"ContextData":["param1","param2","param3"],
}
]
} |
Beta Was this translation helpful? Give feedback.
-
By the way, the bug should be fixed? And it won't affect context menu if you do have one. |
Beta Was this translation helpful? Give feedback.
Not sure if this is what you looking for, you can try add "ContextData" in response of query(), after that, when you enter context menu mode, the
data
variable (def context_menu(self, data) -> list:
) will be[["param1","param2","param3"]]