##// END OF EJS Templates
create app_completes, move non-core completers there, install stock completers as default, ipy_signals in sh profile
vivainio -
Show More
@@ -0,0 +1,21 b''
1 """ Install various IPython completers
2
3 IPython extension that installs the completers related to external apps.
4
5 The actual implementations are in Extensions/ipy_completers.py
6
7 """
8 import IPython.ipapi
9
10 ip = IPython.ipapi.get()
11
12 from ipy_completers import *
13
14 ip.set_hook('complete_command', apt_completers, re_key = '.*apt-get')
15 ip.set_hook('complete_command', apt_completers, re_key = '.*yum')
16
17 ip.set_hook('complete_command', svn_completer, str_key = 'svn')
18
19 ip.set_hook('complete_command', hg_completer, str_key = 'hg')
20
21 ip.set_hook('complete_command', bzr_completer, str_key = 'bzr')
@@ -32,8 +32,9 b' def main():'
32 # beefed up %env is handy in shell mode
32 # beefed up %env is handy in shell mode
33 import envpersist
33 import envpersist
34 import ipy_which
34 import ipy_which
35 import ipy_stock_completers
35 import ipy_app_completers
36 import ipy_rehashdir
36 import ipy_rehashdir
37 import ipy_signals
37
38
38
39
39 ip.ex('import os')
40 ip.ex('import os')
@@ -1,7 +1,6 b''
1 """ Install various IPython completers
1 """ Install various IPython completers
2
2
3 IPython extension that installs most of the implemented
3 IPython extension that installs completers related to core ipython behaviour.
4 custom completers.
5
4
6 The actual implementations are in Extensions/ipy_completers.py
5 The actual implementations are in Extensions/ipy_completers.py
7
6
@@ -12,19 +11,7 b' ip = IPython.ipapi.get()'
12
11
13 from ipy_completers import *
12 from ipy_completers import *
14
13
15 ip.set_hook('complete_command', apt_completers, re_key = '.*apt-get')
16 ip.set_hook('complete_command', apt_completers, re_key = '.*yum')
17
18
19 ip.set_hook('complete_command', module_completer, str_key = 'import')
14 ip.set_hook('complete_command', module_completer, str_key = 'import')
20 ip.set_hook('complete_command', module_completer, str_key = 'from')
15 ip.set_hook('complete_command', module_completer, str_key = 'from')
21
22 ip.set_hook('complete_command', svn_completer, str_key = 'svn')
23
24 ip.set_hook('complete_command', hg_completer, str_key = 'hg')
25
26 ip.set_hook('complete_command', bzr_completer, str_key = 'bzr')
27
28 ip.set_hook('complete_command', runlistpy, str_key = '%run')
16 ip.set_hook('complete_command', runlistpy, str_key = '%run')
29
30 ip.set_hook('complete_command', cd_completer, str_key = '%cd')
17 ip.set_hook('complete_command', cd_completer, str_key = '%cd')
@@ -18,6 +18,5 b' import sys'
18 import ext_rescapture # var = !ls and var = %magic
18 import ext_rescapture # var = !ls and var = %magic
19 import pspersistence # %store magic
19 import pspersistence # %store magic
20 import clearcmd # %clear
20 import clearcmd # %clear
21 # Basic readline config
22
21
23 o = ip.options
22 import ipy_stock_completers
@@ -16,6 +16,13 b''
16
16
17 * %hist/%history now operates in "raw" mode by default. To get the old
17 * %hist/%history now operates in "raw" mode by default. To get the old
18 behaviour, run '%hist -n' (native mode).
18 behaviour, run '%hist -n' (native mode).
19
20 * split ipy_stock_completers.py to ipy_stock_completers.py and
21 ipy_app_completers.py. Stock completers (%cd, import, %run) are now
22 installed as default.
23
24 * sh profile now installs ipy_signals.py, for (hopefully) better ctrl+c
25 handling.
19
26
20 2007-05-23 Ville Vainio <vivainio@gmail.com>
27 2007-05-23 Ville Vainio <vivainio@gmail.com>
21
28
General Comments 0
You need to be logged in to leave comments. Login now