For Python plugins, what is the data argument passing in the 'context_menu' function?
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
Start with the linked Python plugin references and compare their context_menu behavior with the linked Steam plugin's main.py, especially the context passed through add_item and exposed in data[0]. Check the Hello World example for the corresponding selection flow; done means the documentation clearly explains how a selected item's UID or context reaches context_menu.
Written by the indexing model from the issue text.
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?
- Dominant language
- Svelte
- Stars
- 23
- Forks
- 23
- Avg merge
- 7d 20h
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Flow-Launcher/docs
-
documentation
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Flow-Launcher/docs#99 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Flow-Launcher/docs#87 · 13 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
Flow-Launcher/docs#79 · 2 comments ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Flow-Launcher/docs#45 · 1 comment · 1 reaction ·
-
Deploy on VercelOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
Flow-Launcher/docs#4 · 12 comments ·
All issues in Flow-Launcher/docs
Similar issues
-
area/docs kind/documentation priority/backlog triage/accepted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
lexfrei/cloudflare-tunnel-gateway-controller#943 ·
Maintainers usually reply within 1 day
-
good first issue hacktoberfest
Difficulty 1/5 Under an hour Newbie friendliness 92/100
RogueAlg0/taken#386 · 3 comments ·
Maintainers usually reply within 1 day
-
documentation tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
iptv-org/awesome-iptv#823 ·
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day