Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

For Python plugins, what is the data argument passing in the 'context_menu' function?

オープン
#49 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
documentation

調査の方向性

リンクされた 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
平均マージ
9日 34分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Flow-Launcher/docs のほかの issue

Flow-Launcher/docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。