Fork me on GitHub
#protorepl
<
2017-07-24
>
danp07:07:53

If I'm working in the REPL, is there a way to navigate between the previously executed forms other than simply pressing up to go through the list in the bottom/last cursor position?

danp07:07:13

As in, can we move the cursor up and down through the historically run code, and back down to the bottom position where the current form can be run?

danp07:07:30

Apologies if the question is ambiguous - have tried to word it as best as possible 🙂

seancorfield16:07:10

@danp Not sure what you're asking...

danp18:07:19

@seancorfield - in the Proto-REPL pane, on evaluating a form after it returns, the evaluated form shifts up the pane whilst the cursor keeps focus on the bottom-most part of the pane. I know I can click previous forms, edit them, and copy them to the bottom-most cursor, but I was wondering if there was a keyboard shortcut for moving up and down through previously evaluated forms. I know I can use the up/down arrows for moving through history when in the bottom-most part of pane, but this replaces any editing I've done. So in short a way of moving between the visible, previously run forms without using the mouse.

seancorfield18:07:15

I guess I still don't understand... you can up/down arrow, change the form, then evaluate it.

seancorfield18:07:58

When I'm working in the REPL, I'll typically type in a form, evaluate it, press up arrow to get that form again, edit it, evaluate it, rinse and repeat. All the edited forms are in the history so I can get to anything I previously typed. I can branch by editing a form in a different way and proceeding down that path.

danp19:07:40

Cheers - I guessed I was trying to work in a strange way, but just wasn't sure how strange!