##// END OF EJS Templates
traits completer respects readline_omit__names
darren.dale -
Show More
@@ -100,6 +100,13 b' def trait_completer(self,event):'
100 100 if attr_start:
101 101 attrs = [a for a in attrs if a.startswith(attr_start)]
102 102
103 # Let's also respect the user's readline_omit__names setting:
104 omit__names = ipget().options.readline_omit__names
105 if omit__names == 1:
106 attrs = [a for a in attrs if not a.startswith('__')]
107 elif omit__names == 2:
108 attrs = [a for a in attrs if not a.startswith('_')]
109
103 110 #print '\nastart:<%r>' % attr_start # dbg
104 111
105 112 if len(attr_start)<COMPLETE_THRESHOLD:
@@ -1,3 +1,7 b''
1 2007-11-23 Darren Dale <darren.dale@cornell.edu>
2 * ipy_traits_completer.py: let traits_completer respect the user's
3 readline_omit__names setting.
4
1 5 2007-11-08 Ville Vainio <vivainio@gmail.com>
2 6 * ipy_completers.py (import completer): assume 'xml' module exists.
3 7 Do not add every module twice anymore. Closes #196.
General Comments 0
You need to be logged in to leave comments. Login now