<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 19 July 2016 at 18:12, Carl Smith <span dir="ltr"><<a href="mailto:carl.input@gmail.com" target="_blank">carl.input@gmail.com</a>></span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)">​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.</div></div></div></blockquote><div><br></div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(115,115,115);line-height:18px"><font size="1" face="monospace, monospace"><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68);display:inline">​This^ would go in the IPython config file.<i>​</i></div></font></span></div><div dir="ltr"><span style="color:rgb(115,115,115);line-height:18px"><font size="1" face="monospace, monospace"><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68);display:inline"><i><br></i></div></font></span></div><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)">​When you're creating a fullscreen app with PT, do you still call `prompt`? The point really: Do you call a method that accepts the same config args as `prompt`? Could you add another option to the config file that requires a dict, where the keys are `prompt` keyword args, and then just `**kargs` it into the `prompt` call inside IPython?</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)">You'd still maybe want IPython APIs for PT stuff people want to do more often, but at least users would always have raw access the much more of the library.</div></div><div dir="ltr"><br></div><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)">​Best,​</div></div><div dir="ltr"><span style="color:rgb(115,115,115);font-style:italic;line-height:18px"><font size="1" face="monospace, monospace">-- Carl Smith</font></span><br></div></div><div><span style="color:rgb(115,115,115);font-style:italic;line-height:18px"><font size="1" face="monospace, monospace"><a href="mailto:carl.input@gmail.com" target="_blank">carl.input@gmail.com</a></font></span></div><div><span style="color:rgb(115,115,115);font-style:italic;line-height:18px"><br></span></div></div></div></div></div></div></div></div>