Fork me on GitHub
#cursive
<
2017-06-06
>
cfleming01:06:34

@shaun-mahood No, they’re really just there for completeness. The simple close-bracket forms jump to the end of the next closing form of that type, but there’s a good argument to be made that they should probably all just jump to the nearest closing delimiter of any type.

cfleming01:06:02

So:

{:foo [:something (do-something|)]}

cfleming01:06:08

Where | is the caret

cfleming01:06:45

Right now, if you press ) it’ll jump over the paren, if you press ] it’ll jump to the closing brace, and if you type } it’ll jump to the end.

cfleming01:06:32

It would probably make sense for ) to just jump to the next one regardless of type, and that would then free up ] and } for other things, or they could all work the same way.

cfleming01:06:13

The close-and-newline versions just do that, and then add a newline and indent.

shaun-mahood01:06:34

I suspect it is pretty irrelevant what the exact behaviour is - I only care at all because I'm messing around with a stupid customized layout so I'm trying to map all the structural stuff and shortcuts and see if I can use them more. I've been comparing paredit in Emacs, smartparens (spacemacs default), and the Cursive implementation just to see what things do.

cfleming01:06:00

Interesting - if you see anything you like that Cursive is missing, do let me know.

cfleming01:06:17

I’d like to try lispy out at some point too, although the learning curve looks formidable.

cfleming01:06:57

We need a yak-shave emoji here.

shaun-mahood01:06:27

Here'a my current iteration - kind if fun but I suspect not the most useful thing I've ever done. https://github.com/smahood/ergodox-infinity-layout/blob/smahood-layout/README.md

cfleming01:06:39

That’ll do, I guess

shaun-mahood01:06:34

I think it should be a green yak though :)

shaun-mahood01:06:19

@cfleming: Lispy looks interesting, I really like the part of documentation with the reversible commands - one of the parts of learning emacs-paredit/cursive-paredit that is pretty unintuitive to figure out.

cfleming01:06:05

Yeah, I’ve actually considered something like a touch-typing tutor but for paredit, with exercises designed to teach you how it works.

cfleming01:06:15

I like the context-sensitive short commands in lispy.

cfleming01:06:30

And yes, the doc is really good.

shaun-mahood01:06:09

The world of editing lisps has got to be a pretty unending source of ideas for you to implement in Kotlin :)

cfleming01:06:30

Although all the paredit stuff is in Clojure 🙂

shaun-mahood01:06:19

If you decide you are coming to the Conj I'd be super interested in a Kotlin talk related to your work - I suspect I'm not the only one.

cfleming01:06:57

Yeah, that would be interesting to give - unfortunately I’m unlikely to go to the conj this year.

shaun-mahood01:06:38

I almost tried to swing Euro Clojure this year but timing didn't quite work. It'll be less fun without you there.

cfleming01:06:14

Thanks - it would be great to catch up again. The border circus is a bit off-putting, though.

cfleming01:06:35

I haven’t 100% decided yet.

shaun-mahood01:06:33

Yeah. I changed my travel plans a bunch of times to avoid it already. Transatlantic laptop stuff is just insane though.

cfleming01:06:31

I’m looking forward to a Clojure North in Canada 🙂

shaun-mahood02:06:10

Our local clojure meetup has 2 regulars so we're almost halfway there to a big conference!

shaun-mahood02:06:26

I think there's a reason clojure remote was born in Canada, though Toronto sounds like there are quite a few devs there.

cfleming03:06:49

Yeah, IIRC Yogthos said they regularly get 30 or so, all working with Clojure.

psalaberria00210:06:19

can I start cursive remote repl in debug mode? the option is disabled

timgilbert15:06:28

Say, when I'm calling a function with the arguments on a new line, Cursive formats the second line with two spaces, like this:

(foo
  bar)
I'd like it to just use one space, like this:
(foo
 bar)

timgilbert15:06:57

I looked in the code style settings, but I don't see an obvious way to set this, is there a setting I'm missing?

zylox15:06:16

does One Space List Indent not do what you are looking for?

timgilbert15:06:01

I'm not able to find that setting, where do you see it?

zylox15:06:30

Away from computer but I think it's editor>code style>clojure > general tab

timgilbert15:06:54

Aha! Found it, thanks @zylox!

zylox15:06:08

No problem

nwjsmith19:06:25

It's a little weird that test output is printed in red even when the tests pass, no?

zylox21:06:54

what output

zylox21:06:11

i dont have any red output

cfleming21:06:08

@nwjsmith Only stderr should be printed in red.

cfleming21:06:23

@psalaberria002 No, because the remote REPL doesn’t start the process it connects to (which is required to start in debug mode). If you want to debug a process you’re connecting a remote REPL to, you have to a) start it in debug mode, b) connect the remote debugger, c) connect the remote REPL.

psalaberria00221:06:15

cfleming: Thank you.

nwjsmith21:06:14

Ah, thanks that makes sense