prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Pass current prompt value to bottom toolbar callback
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
I'd like to display the result of parsing a date to the user in real time as they type it. It would be nice to be able to do this using the bottom_toolbar parameter to prompt, but as far as I can tell the callable specified in bottom_toolbar is not passed the current value. Is it possible to pass the current value entered into the prompt to some sort of callback that can update the screen?
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
Start by tracing how prompt handles the bottom_toolbar callable and how the current input value is maintained. Determine whether the callback can receive that value and refresh the toolbar while typing. Done means the documented bottom_toolbar path can display the current prompt value in real time, with behavior covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100