Case insensitive Tab completion

Bug #362568 reported by Andrea Riciputi on 2009-04-16
Affects Status Importance Assigned to Milestone

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.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 (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 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