##// 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 # import ipy_defaults
23 # import ipy_defaults
24
24
25 def main():
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 o = ip.options
30 o = ip.options
27 # An example on how to set options
31 # An example on how to set options
28 #o.autocall = 1
32 #o.autocall = 1
@@ -557,7 +557,7 b' class IPCompleter(Completer):'
557 # print "try",c # dbg
557 # print "try",c # dbg
558 try:
558 try:
559 res = c(event)
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 except ipapi.TryNext:
561 except ipapi.TryNext:
562 pass
562 pass
563
563
@@ -3,7 +3,11 b''
3 * ipy_stock_completers.py: Add %run and %cd completers.
3 * ipy_stock_completers.py: Add %run and %cd completers.
4
4
5 * completer.py: Try running custom completer for both
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 2006-10-31 Ville Vainio <vivainio@gmail.com>
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