For Python plugins, what is the data argument passing in the 'context_menu' function?
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- python
调研方向
从链接的 Python 插件参考开始,将它们的 context_menu 行为与链接的 Steam 插件的 main.py 进行比较,尤其关注通过 add_item 传递并在 data[0] 中暴露的上下文。检查 Hello World 示例中相应的选择流程;当文档清楚说明所选项目的 UID 或上下文如何到达 context_menu 时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
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?
- 主要语言
- Svelte
- 星标
- 23
- 派生
- 23
- 平均合并
- 7 天 6 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Flow-Launcher/docs 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 55/100
Flow-Launcher/docs#113 ·
-
难度 3/5 1-2 天 新手友好度 65/100
Flow-Launcher/docs#112 ·
-
难度 1/5 1 小时以内 新手友好度 45/100
Flow-Launcher/docs#111 ·
-
难度 5/5 一周以上 新手友好度 15/100
Flow-Launcher/docs#109 ·
-
documentation
难度 3/5 1-2 天 新手友好度 25/100
Flow-Launcher/docs#99 ·
查看 Flow-Launcher/docs 的全部 Issue
相似的 Issue
-
area:arcade p3-medium ready-for-agent testing type:docs
难度 2/5 1-3 小时 新手友好度 76/100
fderuiter/deruiter.dev#2369 ·
维护者通常 1 天内回复
-
Protocol doc §3/§5 + ADR 0001 (disjoint validation sets)可能已有人在做 @debrevitatevitae 今天认领。 未关闭ready-for-agent
难度 2/5 1-3 小时 新手友好度 74/100
-
coding good first issue size:s skill:kotlin-core sub-issue
难度 2/5 1-3 小时 新手友好度 82/100
SKaiNET-developers/SKaiNET#1418 ·
维护者通常 1 天内回复
-
needs triage
难度 2/5 1-3 小时 新手友好度 68/100
pbakaus/impeccable#1077 ·
维护者通常 1 天内回复
-
KB infra drift: deployed estate changed可能已有人在做 @chd-ds-kb-steward 今天认领。 未关闭kb-infra-drift
难度 2/5 1-3 小时 新手友好度 68/100
OCHA-DAP/ds-knowledge-base#792 · 1 条评论 ·
维护者通常 1 天内回复