[IPython-dev] ipy_editor.py: textmate function

Matt Foster matt.p.foster at gmail.com
Wed Nov 26 03:38:23 EST 2008


On Tue, Nov 25, 2008 at 10:44 PM, Matt Foster <matt.p.foster at 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: 442 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20081126/f2e7b864/attachment.obj>


More information about the IPython-dev mailing list