##// END OF EJS Templates
install stock completers in default user config. Ignore case in filtering possible custom completions
vivainio -
Show More
@@ -23,6 +23,10 b' ip = IPython.ipapi.get()'
23 23 # import ipy_defaults
24 24
25 25 def main():
26 # Handy tab-completers for %cd, %run, import etc.
27 # Try commenting this out if you have completion problems/slowness
28 import ipy_stock_completers
29
26 30 o = ip.options
27 31 # An example on how to set options
28 32 #o.autocall = 1
@@ -557,7 +557,7 b' class IPCompleter(Completer):'
557 557 # print "try",c # dbg
558 558 try:
559 559 res = c(event)
560 return [r for r in res if r.startswith(text)]
560 return [r for r in res if r.lower().startswith(text.lower())]
561 561 except ipapi.TryNext:
562 562 pass
563 563
@@ -3,7 +3,11 b''
3 3 * ipy_stock_completers.py: Add %run and %cd completers.
4 4
5 5 * completer.py: Try running custom completer for both
6 "foo" and "%foo" if the command is just "foo".
6 "foo" and "%foo" if the command is just "foo". Ignore case
7 when filtering possible completions.
8
9 * UserConfig/ipy_user_conf.py: install stock completers as default
10
7 11
8 12 2006-10-31 Ville Vainio <vivainio@gmail.com>
9 13
General Comments 0
You need to be logged in to leave comments. Login now