Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#49 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Flow-Launcher/docs

All issues in Flow-Launcher/docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.