File: ipy_app_completers.py

package info (click to toggle)
ipython 0.13.1-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 15,752 kB
  • sloc: python: 69,537; makefile: 355; lisp: 272; sh: 80; objc: 37
file content (19 lines) | stat: -rw-r--r-- 583 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
""" Install various IPython completers

IPython extension that installs the completers related to external apps.

The actual implementations are in extensions/ipy_completers.py

"""
from IPython.core import ipapi

ip = ipapi.get()

from ipy_completers import *

ip.set_hook('complete_command', apt_completer, re_key = '.*apt-get')
ip.set_hook('complete_command', svn_completer, str_key = 'svn')
ip.set_hook('complete_command', hg_completer, str_key = 'hg')

# the old bzr completer is deprecated, we recommend ipy_bzr
#ip.set_hook('complete_command', bzr_completer, str_key = 'bzr')