that's interesting - instead of a line based repl there could be a form based repl
@metametadata any idea how that would work on the terminal?
@pesterhazy it would be convenient to use some key combo, e.g. Option+Up
. And it can simply copy-paste the last submitted string (i.e. everything typed before I clicked Enter
):
cljs.user=> [123<<Shift+Enter>>
#_=> 456]<<Enter>>
[123 456]
cljs.user=> <<Opt+Up>>[123
#_=> 456]
I.e. I'm OK with REPL still be string-based but not split history at newlines, so to speak.
That's likely possible. I can't remember the js file name, but server.js should point you in the right direction for configuring the readline setup
Something like opt+up/down moving between forms and up/down moving between lines would be really neat.
let’s open an issue for that
it’s basically the equivalent of this Planck issue: https://github.com/mfikes/planck/issues/120
OK, I added https://github.com/anmonteiro/lumo/issues/298