[IPython-dev] ipy_editor.py: textmate function
Tue Nov 25 18:50:06 CST 2008
Thanks for this code, I am adding it right now. But when I tested it,
it doesn't properly execute the code after editing. Did you get this
I saw a couple of different things:
* New file
If I do %edit newfile.py
In : edit newfile.py
Editing... done. Executing edited code...
Could not open file <newfile.py> for safe execution.
This all happens _before_ I edit, save and close the file. It looks
like -w is not working?
* When a file already exists, the old, preedited version gets executed.
Could you look into ways of fixing these things?
IPython gives an error
On Tue, Nov 25, 2008 at 2:44 PM, Matt Foster <email@example.com> wrote:
> 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.
> Matt Foster | http://hackerific.net
> IPython-dev mailing list
More information about the IPython-dev