Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

WIP - colorize the output of the word completions

  • Loading branch information...
commit de5d5e978c0ed33dc99ed9019662828d56ac34e2 1 parent ec3188c
Paul Ivanov authored
Showing with 12 additions and 1 deletion.
  1. +1 −1  IPython/core/application.py
  2. +11 −0 IPython/utils/dir2.py
2  IPython/core/application.py
View
@@ -124,7 +124,7 @@ def _profile_changed(self, name, old, new):
overwrite = Bool(False, config=True,
help="""Whether to overwrite existing config files when copying""")
- auto_create = Bool(False, config=True,
+ auto_create = Bool(True, config=True,
help="""Whether to create profile dir if it doesn't exist""")
config_files = List(Unicode)
11 IPython/utils/dir2.py
View
@@ -17,7 +17,18 @@
# Code
#-----------------------------------------------------------------------------
+c = '\033[32m'
+noc = '\033[0m'
+
+from IPython.utils import coloransi
+
+c = coloransi.TermColors.Green
+noc = coloransi.TermColors.NoColor
+def colorize(l):
+ return [c+x+noc for x in l ]
+
def get_class_members(cls):
+ #ret = colorize(dir(cls))
ret = dir(cls)
if hasattr(cls,'__bases__'):
try:
Please sign in to comment.
Something went wrong with that request. Please try again.