##// END OF EJS Templates
Changing input filtering to require whitespace separation between the initial command (alias, magic, autocall) and rest of line. ...
Changing input filtering to require whitespace separation between the initial command (alias, magic, autocall) and rest of line. This fixes some subtle but nasty bugs with lines that start with, e.g. r'a_string'. They had been getting parsed as the magic %r followed by the string literal 'a_string' -- now that's been fixed.

File last commit:

r681:d0f4fbb0
r707:8de6d199
Show More
ipy_stock_completers.py
17 lines | 527 B | text/x-python | PythonLexer
""" Install various IPython completers
IPython extension that installs completers related to core ipython behaviour.
The actual implementations are in Extensions/ipy_completers.py
"""
import IPython.ipapi
ip = IPython.ipapi.get()
from ipy_completers import *
ip.set_hook('complete_command', module_completer, str_key = 'import')
ip.set_hook('complete_command', module_completer, str_key = 'from')
ip.set_hook('complete_command', runlistpy, str_key = '%run')
ip.set_hook('complete_command', cd_completer, str_key = '%cd')