Case insensitive Tab completion

Bug #362568 reported by Andrea Riciputi
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.

Revision history for this message
Andrea Riciputi (andrea-riciputi) wrote :
Changed in ipython:
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.