Show More
@@ -99,6 +99,13 b' def trait_completer(self,event):' | |||||
99 | attr_start = symbol_parts[-1] |
|
99 | attr_start = symbol_parts[-1] | |
100 | if attr_start: |
|
100 | if attr_start: | |
101 | attrs = [a for a in attrs if a.startswith(attr_start)] |
|
101 | attrs = [a for a in attrs if a.startswith(attr_start)] | |
|
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('_')] | |||
102 |
|
109 | |||
103 | #print '\nastart:<%r>' % attr_start # dbg |
|
110 | #print '\nastart:<%r>' % attr_start # dbg | |
104 |
|
111 |
@@ -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 | 2007-11-08 Ville Vainio <vivainio@gmail.com> |
|
5 | 2007-11-08 Ville Vainio <vivainio@gmail.com> | |
2 | * ipy_completers.py (import completer): assume 'xml' module exists. |
|
6 | * ipy_completers.py (import completer): assume 'xml' module exists. | |
3 | Do not add every module twice anymore. Closes #196. |
|
7 | Do not add every module twice anymore. Closes #196. |
General Comments 0
You need to be logged in to leave comments.
Login now