On Jun 12, 2012, at 7:01 PM, P Purkayastha wrote:
> On Wednesday, June 13, 2012 12:40:47 AM UTC+8, kcrisman wrote:
> On Tuesday, June 12, 2012 12:06:11 PM UTC-4, Keshav Kini wrote:
> Chris Hall <[email protected]> writes: 
> > The command line is great when I have a few quick commands, but I find it 
> > painful for developing multi-line methods (i.e. 'coding'). 
> 
> Do you know about %edit? Just type %edit on the command line, and it 
> will open a temporary file in an editor where you can craft a method, 
> class, or whatever. When you save the temporary file and quit the 
> editor, Sage will load the file into the interpreter and then delete it. 
> (This functionality is built into IPython.)
> 
> All these hidden functionalities should be exposed to the user IMHO. I knew 
> of only %hide which could manipulate cell UI/behavior.

Indeed!  I started adding some tips to the start up screen of the Mac app, but 
I don't know very many of the secrets and it's probably not the best place to 
put them.

> Cool!  Unfortunately, it opens vim for me, probably some default I'd have to 
> set - nice, though. 
> 
> Probably your $EDITOR environment variable. 

See set_edit_template() for how to set it specifically inside Sage.

-Ivan

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to