Re: .<tab> to print all entries in sorted(dir(obj)) behavior?

Wes Turner <[email protected]> Fri, 15 Dec 2017 01:34:10 -0500
Newsgroups gmane.comp.python.ipython.devel
Message-ID <CACfEFw8p+FyRyxKhdGoMyo=HP6RPe+d9YdRdEzLxhMKhFBMw_w@mail.gmail.com>
--===============2657380741949489523==
Content-Type: multipart/alternative; boundary="94eb2c042e8e39e10a05605b3023"

--94eb2c042e8e39e10a05605b3023
Content-Type: text/plain; charset="UTF-8"

On Fri, Dec 15, 2017 at 1:23 AM, Wes Turner <[email protected]> wrote:

> How do I / is there a way to restore the .<tab> prints all entries in
> sorted(dir(obj)) behavior?
>
> Is there a way to configure the new python-prompt-toolkit to not require
> multiple keystrokes to list the inspectable API of a class or instance?
>

Is there a way to get my .inputrc readline bindings to work in IPython?
(Is there a way to restore the classic pre-python-prompt-toolkit completer
functionality with a configuration setting?)

Call me old-fashioned, but I'd rather have my .inputrc readline bindings
than these new features, TBH.

  Ctrl-[ == Ctrl-A
  Ctrl-] == Ctrl-E
  Ctrl-right
  Ctrl-left

I added this first stab at a (pseudo-stateful) parser, but it's probably
not complete and lacking test cases:

"detect key-bindings from .inputrc"
https://github.com/jonathanslenders/python-prompt-toolkit/issues/56
https://gist.github.com/westurner/0491f7e2c6d91842c3bcd3925d911ff7

In the meantime, how could one restore the classic IPCompleter or even just
rlcompleter?

--94eb2c042e8e39e10a05605b3023
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">=
On Fri, Dec 15, 2017 at 1:23 AM, Wes Turner <span dir=3D"ltr">&lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>=
&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px=
 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><di=
v dir=3D"ltr">How do I / is there a way to restore the .&lt;tab&gt; prints =
all entries in sorted(dir(obj)) behavior?<br><div><br></div><div>Is there a=
 way to configure the new python-prompt-toolkit to not require multiple key=
strokes to list the inspectable API of a class or instance?</div></div></bl=
ockquote><div><br></div><div>Is there a way to get my .inputrc readline bin=
dings to work in IPython?</div><div>(Is there a way to restore the classic =
pre-python-prompt-toolkit completer functionality with a configuration sett=
ing?)</div><div><br></div><div>Call me old-fashioned, but I&#39;d rather ha=
ve my .inputrc readline bindings than these new features, TBH.</div><div><b=
r></div><div>=C2=A0 Ctrl-[ =3D=3D Ctrl-A</div><div>=C2=A0 Ctrl-] =3D=3D Ctr=
l-E<br></div><div>=C2=A0 Ctrl-right</div><div>=C2=A0 Ctrl-left</div><div><b=
r></div><div>I added this first stab at a (pseudo-stateful) parser, but it&=
#39;s probably not complete and lacking test cases:</div><div><br></div><di=
v>&quot;detect key-bindings from .inputrc&quot;<br></div><div><a href=3D"ht=
tps://github.com/jonathanslenders/python-prompt-toolkit/issues/56">https://=
github.com/jonathanslenders/python-prompt-toolkit/issues/56</a>=C2=A0</div>=
<div><a href=3D"https://gist.github.com/westurner/0491f7e2c6d91842c3bcd3925=
d911ff7">https://gist.github.com/westurner/0491f7e2c6d91842c3bcd3925d911ff7=
</a><br></div><div><br></div><div>In the meantime, how could one restore th=
e classic IPCompleter or even just rlcompleter?</div></div><br></div></div>

--94eb2c042e8e39e10a05605b3023--

--===============2657380741949489523==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
IPython-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/ipython-dev

--===============2657380741949489523==--