prompt-toolkit / prompt-toolkit/python-prompt-toolkit
Create something like `prompt_toolkit.readline`.
Open
@jonathanslenders is already working on this.
Since Dec 17, 2016.
enhancement
- Dominant language
- Python
- Stars
- 10.6k
- Forks
- 815
- PR merge metrics
- No merged PRs in 30d
Description
Deprecate prompt_toolkit.shortcuts and create an improved API instead. (However, don't remove the shortcuts module, there are too many people using it.)
The reason is that right now, we are missing some "state" between multiple calls of "prompt()".
for instance, we loose the search history between two calls. But also, "operate-and-get-next" can't work without keeping some state in between "prompt()" calls.
I propose to build a new API like this:
from prompt_toolkit.text_input import create_session
session = create_session(...)
session.prompt('> ')
session.prompt('> ')
prompt() # Call prompt from the system wide session.
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.
Assessment
This issue has not been assessed yet.