@@ -0,0 +1,781 @@
+%22%22%22 'editor' hooks for common editors that work well with ipython%0D%0A%0D%0AThey should honor the line number argument, at least.%0D%0A%0D%0AContributions are *very* welcome.%0D%0A%22%22%22%0D%0A%0D%0Aimport IPython.ipapi%0D%0Aip = IPython.ipapi.get()%0D%0A%0D%0Afrom IPython.Itpl import itplns%0D%0Aimport os%0D%0A%0D%0Adef install_editor(run_template):%0D%0A    def call_editor(self, file, line):%0D%0A        if line is None:%0D%0A            line = 0%0D%0A        cmd = itplns(run_template, locals())%0D%0A        print %22%3E%22,cmd%0D%0A        os.system(cmd)%0D%0A%0D%0A    ip.set_hook('editor',call_editor)%0D%0A%0D%0Adef komodo(exe = 'komodo'):%0D%0A    %22%22%22 Warning - komodo does not block %22%22%22%0D%0A    install_editor(exe + ' -l $line %22$file%22')%0D%0A%0D%0Adef scite(exe = %22scite%22):%0D%0A    %22%22%22 Exe is the executable name of your scite.%0D%0A    %22%22%22%0D%0A    install_editor(exe + ' %22$file%22 -goto:$line')

add ipy_editors.py, start it out with scite and komodo