Dima Pasechnik <[email protected]> writes:
> On Tuesday, 17 July 2012 12:58:46 UTC+8, Keshav Kini wrote:
>     Dima Pasechnik <[email protected]> writes:
>     > By the way, is there a sorely missed by me feature of getting
>     the
>     > next command in the history?
>     > I.e. I often do something like this:
>     >
>     > sage: A...
>     > sage: B...
>     > sage: C...
>     > oops, wrong answer; editing code...
>     > sage: A...
>     > sage: B...
>     > sage: C...
>     > oops, wrong answer; editing code...
>     > sage: A...
>     > sage: B...
>     > sage: C...
>     > Good!
>     >
>     > So I can navigate history to A, but once I am there and
>     executed it,
>     > I want a quick way to go to B.
>     > But it's not available...
>    
>     Try the following:
>    
>     sage: %edit -p
>
>
> this pops up an editor. Not useful, sorry... 

I figured that

sage: %edit -p
[editor opens with nothing in it]
A
B
C
[save and quit]
oops, wrong answer
sage: %edit -p
[editor opens with A, B, and C already in it]
[edit code]
[save and quit]
oops, wrong answer
sage: %edit -p
[editor opens with A, B, and C already in it]
[edit code]
[save and quit]
Good!

would be an even better way to do it than to have a quick way to go to B
after hitting "up" a few times to find A.

-Keshav

----
Join us in #sagemath on irc.freenode.net !

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



Reply via email to