Fork me on GitHub
#cursive
<
2019-08-08
>
maxt07:08:27

@cfleming I love the REPL-commands. One additional thing I would like to be able to do, is replace the selection with the result. Would that be possible?

mitchelkuijpers12:08:15

This is a really cool one, I used to do this a lot in Emacs. You can then write parts of your program with Clojure

cfleming00:08:55

Yes, there are a lot of this sort of command that you might want to have, and I don’t want to implement them all and have a combinatorial explosion of possibilities. So my plan is to extend the REPL commands to allow you to build the ones you use yourself.

isak13:08:39

Is there a way to do this in Cursive? (Ctrl-Space - extend selection from Emacs). Similar to Ctrl-W in Cursive, but going forward, not up.

isak13:08:56

looks like you can just "Toggle Sticky Selection", and then navigate forward

cfleming00:08:52

Yes, this is the best option right now. I’d like to implement “Extend selection left/right” too.

4
unbalanced13:08:37

does anyone have a decent clojurescript+node.js+deps.edn+(n)repl workflow down?

souenzzo14:08:44

@U3BALC2HH I usually use 2 REPL The first one, a regular cursive clojure REPL where I call:

(shadow.server/start!)
(shadow.api/watch :my-node-app)
Where the shadow-cljs.edn looks something like this
{:deps   true
 :nrepl  {:port 9000}
 :builds {...
Then I start other "remote repl", connected on port 9000 This REPL is managed by shadow-cljs and I can call
(shadow.api/repl :my-node-app)
to "dig in" nodejs REPL

unbalanced14:08:37

ok. I'm seeing online that you need to maintain a seperate project.clj to "trick" cursive into playing appropriately with shadow-cljs ... is that still the case?

unbalanced14:08:55

That's the main reason I've avoided shadow-cljs up until now

unbalanced14:08:07

(also thanks for taking the time to respond!)

souenzzo15:08:29

shadow-cljs can use "built in deps", deps.edn or project.clj #cursive just handle deps used at deps.edn or project.clj In that example, I'm using deps.edn, but should work with project.clj too

bananadance 4
unbalanced15:08:21

okay I'll give that a shot