[IPython-dev] ipy_editor.py: textmate function

Matt Foster matt.p.foster@gmail....
Wed Nov 26 02:38:23 CST 2008


On Tue, Nov 25, 2008 at 10:44 PM, Matt Foster <matt.p.foster@gmail.com> wrote:
> Hi,
>
> You can add TextMate support to ipy_editor.py like this (-w means wait):
>
> def mate(exe = 'mate'):
>    """ TextMate, the missing editor"""
>    install_editor(exe + '-w -l $line "$file"')
>
> I've attached a patch.

Arg. I think an extra space is needed before the '-w':

def mate(exe = 'mate'):
   """ TextMate, the missing editor"""
   install_editor(exe + ' -w -l $line "$file"')

Apologies for that. It's what I get for emailing a patch straight before bed.

-- 
Matt Foster | http://hackerific.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipy_editor_mate.diff
Type: application/octet-stream
Size: 441 bytes
Desc: not available
Url : http://lists.ipython.scipy.org/pipermail/ipython-dev/attachments/20081126/f2e7b864/attachment.obj 


More information about the IPython-dev mailing list