Open asmeurer opened 7 years ago
Let me think about this. I'm not sure how much value it adds, and whether this would actually be used.
Well it's just an idea. I would look to new users to see if they would find it useful. Like I said, I personally am already using my own implementations of most of the shortcuts functions, so I likely wouldn't use it myself.
An idea from https://github.com/jonathanslenders/python-prompt-toolkit/issues/519#issuecomment-318978114 and https://github.com/jonathanslenders/python-prompt-toolkit/issues/519#issuecomment-320065017.
It could be useful to have one higher level of abstraction in shortcuts.py, for the full "main loop" of a prompt REPL. Something like
It could also support other features like keeping track of prompt numbers, or an input "queue" (see https://github.com/jonathanslenders/python-prompt-toolkit/issues/519#issuecomment-318978114).