<div dir="ltr">Rather than duplicating this between xonsh and IPython, maybe we should try to push it upstream to prompt_toolkit?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 July 2016 at 02:51, Carl Smith <span dir="ltr"><<a href="mailto:carl.input@gmail.com" target="_blank">carl.input@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)">While looking for more info on PT keybinding, I came across some xonsh code which makes the cursor wrap around when you navigate off the start or end of a line, like most GUI editors do. The original code is here:</div><div class="gmail_default"><font color="#444444" face="monospace, monospace"><br></font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace"><a href="http://xon.sh/_modules/xonsh/ptk/key_bindings.html" target="_blank">http://xon.sh/_modules/xonsh/ptk/key_bindings.html</a></font><br></div><div class="gmail_default"><font color="#444444" face="monospace, monospace"><br></font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace">There's an IPython startup file (as a gist) here that does the same thing for IPython 5:</font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace"><br></font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace"><a href="https://gist.github.com/carlsmith/3cb2340bbfbdfcbdd579a948717af997" target="_blank">https://gist.github.com/carlsmith/3cb2340bbfbdfcbdd579a948717af997</a></font></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)">It seems like something that should just be enabled at all times, but maybe someone else would prefer the current behaviour. Would anyone want this to be configurable?</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)">Cheers,</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:small;color:rgb(68,68,68)"><br></div><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(115,115,115);font-style:italic;line-height:18px"><font face="monospace, monospace" size="1">-- Carl Smith</font></span><br></div></div><div><span style="color:rgb(115,115,115);font-style:italic;line-height:18px"><font face="monospace, monospace" size="1"><a href="mailto:carl.input@gmail.com" target="_blank">carl.input@gmail.com</a></font></span></div></div></div></div></div></div>
</div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/ipython-dev" rel="noreferrer" target="_blank">https://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>