IPython - Enhanced Interactive Python

Case insensitive Tab completion

Reported by Andrea Riciputi on 2009-04-16
2
Affects Status Importance Assigned to Milestone
IPython
Confirmed
Wishlist
Unassigned

Bug Description

Nowadays many Python packages have classes and/or methods that can be both lower and upper case. Being able to get autocompletion suggestion in a case insensitive way could be really usefull to many IPython users. I'm talking about something similar to what you get in most modern shells, where you get file completion no matter the file name case. Something that works like this:

Foo.a[TAB][TAB]
Foo.amethod Foo.AnotherMethod

if the user types "m" she gets Foo.amethod, whilst if she types "n" she gets Foo.AnotherMethod

Thomas Heller suggested to hack the attr_matches() and global_matches() methods in completer.py (see the patch below). I think a better solution would be a new configuration option (let say tab_case = True|False) to be set in the ipython_rc.py file. I'm sorry, but I don't know IPython internals enough to be able to be more specific. However I think this feature could be a usefull improvement to many IPython users.

Changed in ipython:
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers