Fork me on GitHub
#lumo
<
2017-10-19
>
pesterhazy08:10:41

that's interesting - instead of a line based repl there could be a form based repl

pesterhazy08:10:58

@metametadata any idea how that would work on the terminal?

metametadata10:10:29

@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]

metametadata10:10:40

I.e. I'm OK with REPL still be string-based but not split history at newlines, so to speak.

futuro12:10:00

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

futuro13:10:16

Something like opt+up/down moving between forms and up/down moving between lines would be really neat.

anmonteiro16:10:04

let’s open an issue for that

anmonteiro16:10:35

it’s basically the equivalent of this Planck issue: https://github.com/mfikes/planck/issues/120