[IPython-dev] Using Prompt Toolkit to edit terminal inputs in a screen editor.
Carl Smith
carl.input at gmail.com
Tue Jul 19 13:12:47 EDT 2016
On 19 July 2016 at 18:01, Thomas Kluyver <takowl at gmail.com> wrote:
> On 19 July 2016 at 17:58, Carl Smith <carl.input at gmail.com> wrote:
>
>> The documented APIs for the inaccessible PT features involve passing
>> stuff to their `parse` method, using named args, but there's no obvious way
>> to attach the same stuff to a running instance. Any ideas would be
>> appreciated. As a concrete example, how would an IPython user add a bottom
>> toolbar:
>>
>
> I think that's something we'd need to expose. I'm planning to investigate
> adding a bottom toolbar for IPython 6.
>
Cool. It'd be nice if there was a way to define some of this stuff on a
running instance, instead of you guys having to push each feature by hand,
but I'm just being impatient really. Each new feature will need properly
integrating into IPython anyway.
On keys for the editor feature, users can do `from prompt_toolkit.keys
import Keys`, then use stuff like `Keys.ControlV` easily. The PT API would
make it pretty simple to take a user's Key subclass and set up their
shortcut. I think only do it once per session though, like any event
handler.
Best, and thanks again Thomas. You do an awesome job with the Python
community.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20160719/65d4ee30/attachment.html>
More information about the IPython-dev
mailing list