d4l3k/go-pry

Question/Discussion: REPL history + copy-paste

mindreframer opened this issue · 6 comments

First: thanks for doing this, this it the most functional go repl out there!

While not a big issue, but it would be nice to be able to copy-paste larger code blocks into the repl directly. History + tab completion would be the cherry on top of it.

Here is a project that used the go impl. of readline with great success, maybe this could be something useful here?

https://github.com/abiosoft/ishell

Cheers
Roman

d4l3k commented

Yeah, definitely things on the roadmap!

History is actually implemented, but seems to have been broken. I'll look into that soon

d4l3k commented

@mindreframer history has been fixed.

I just tried on 911b948 and up arrow still does nothing.

d4l3k commented

Yeh, that fixed it and paste works too now. Is it possible to save/restore the history as you exit/restart?

d4l3k commented