Fork me on GitHub
#cursive
<
2015-12-17
>
wildermuthn15:12:11

When for whatever reason there is an inbalance between brackets or parens, what’s the best option for rebalancing?

wildermuthn15:12:57

I love this IDE, but right now paredit is killing me. In Vim I’d just turn it off for a second.

tord15:12:12

There is a button for switching structural editing on/off in the lower right hand side of the Cursive window.

cjmurphy15:12:04

DN said the following commands are mandatory for him: Raise, Splice, Split, Sexpr aware kill.

cjmurphy15:12:49

They help with various paren problems. You can look up what keys they are.

conan16:12:54

So this Cursive business is totally banging. So is figwheel. I've tried before to make them play nicely, but have always got too bored/frustrated and given up. Now when I'm doing frontend work, I end up just using the console repl, which is pony compared to an IDE one. Is there an easy(ish) way to do figwheel in Cursive that I've missed?

jaen16:12:17

I've only know how to do boot clojurescript REPL, but doesn't figwheel let you run a nREPL server?

jaen16:12:45

At least this here seems suggest so - https://github.com/bhauman/lein-figwheel#figwheel-server-side-configuration - with :nrepl-port option.

conan16:12:16

yeah it runs an nrepl server, but then i have to connect to it and it's a pain to restart (which it requires often). Essentially I want to stop running figwheel in a console.

conan17:12:06

i have, that's the guide i usually try to make work, and is what i'm trying to avoid. I don't want to go adding files and changing config that will annoy the emacs-toting reviewer of my pull request! I'm looking for a way to run an existing project using figwheel in cursive without changing code in the project; of course i'm happy to change my local leiningen profiles. Part of what I want here is to make it easy for designers in my team to fire up a project locally and start editing without having to know how the build system works or how to use a terminal. Thanks very much for taking a look into it, but I guess for now the answer is "not quite, it's still a bit tricky"!

cfleming21:12:59

@wildermuthn: @tord: You can also bind the “Toggle Structural Editing” action to a key if you do it a lot.

cfleming21:12:28

@conan: How do the emacs-toting heathen users on your project connect to Figwheel?

polymeris22:12:32

@conan: cursive has an option to connect to remote repls... what's wrong with that? That's what I use to connect to the figwheel nREPL anyways, and then go

(use 'figwheel-sidecar.repl-api)
(cljs-repl)

conan23:12:05

We all use it from the terminal

conan23:12:15

The problem is that figwheel needs restarting often. Having to do the connection dance is a pain, especially for people that don't know how to use the terminal

conan23:12:11

I'd much prefer just pressing the restart button in the cursive repl

cfleming23:12:36

@conan: I’m actually planning a built-in CLJS REPL type in Cursive, with the option to start Figwheel. That should do the trick, but obviously I have to implement it first.