[IPython-dev] Tab-completion in master
Wed Aug 25 12:00:40 CDT 2010
Fernando Perez skrev 2010-08-24 20:07:
> On Tue, Aug 24, 2010 at 10:36 AM, Jörgen Stenarson
> <email@example.com> wrote:
>> The main problem is that as it works now (at least for me) is that it
>> actually deletes everything I have written if there are matches both in
>> magics and regular. For example if I try to complete on 'color' when in
>> pylab mode then I get a list of 5 matches 2 magics and 3 regular but I get
>> to start all over again and type in color again:
>> In : color
>> colorbar colors %colors colormaps %color_info
>> In :<--Empty line
>> I find it quite annoying to have to retype things in cases like this.
>> I think it would be nice to get alla matches including magics but not if the
>> price is that I loose things I have typed.
> Ah, I certainly don't see the deletion in Linux:
> amirbar[~]> ip -pylab
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> Type "copyright", "credits" or "license" for more information.
> IPython 0.11.alpha1.git -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
> Welcome to pylab, a matplotlib-based Python environment [backend: Qt4Agg].
> For more information, type 'help(pylab)'.
> In : color<TAB>
> colorbar %color_info colormaps colors %colors
> In : color
> So in your case, the 'color' typed so far disappears? That's
> certainly pretty annoying...
> I wonder why that is happening and why it's different on windows than
> linux, that's quite odd. No idea here so far, sorry.
> I am working on some of the tab completion stuff now, but mostly for
> the network, but I'll keep an eye out for anything that sticks out.
> I'm working on the newkernel branch anyway, so nothing I've done
> should have touched trunk on that front.
> Mmh, sorry not to have a better idea right now. But if this is
> behaving like that on windows, we *definitely* need to fix it.
My main problem was a bug in pyreadline when there is no commonprefix
among the completions. Now nothing disappears in this case.
More information about the IPython-dev