prompt-toolkit / prompt-toolkit/python-prompt-toolkit
execute function on completion
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
I'm interested in extending the behavior of text completion.
I'd like to make a (user defined) function call when a text-completion is selected from the dropdown list (e.g., partial match populates a drop-down, I use the arrows to find desired item, and press enter to select it; this action executes a user defined action). Where could I modify the source code to achieve this?
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
The issue does not name a file, test, or entry point. Start by tracing the completion dropdown flow from partial-match display through arrow navigation and Enter selection. Done would mean a documented user-defined function is invoked when a completion is selected, with coverage for that interaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100