Fork me on GitHub
#cursive
<
2018-01-31
>
tianshu00:01:20

for macro, how about let user write a function or something like spec, receive the params of macro, and return a map like {:fns [(xxx []), (yyy [a b c])], :vars [v1 v2 v3], :bindings [local-v1 local-v2]}

danielcompton00:01:55

Is there any fast way to drop a #_ on some text? The comment command prints a ; which is not so helpful

danielcompton00:01:32

@kenny the IntelliJ Terminal is really weird, I've found lots of odd behaviour between it and iTerm 2

kenny00:01:28

The strange part is it doesn't happen in my terminal but it does in my co-worker's.

kenny00:01:57

I haven't found a way to do the #_ thing. It would be helpful.

kenny00:01:30

Also worth nothing that the comment command does not send parens to a new line whereas typing a ; does.

cfleming01:01:02

@doglooksgood You mean for adding macro support for Cursive?

cfleming01:01:21

That’s actually almost exactly what Cursive does internally. I’m planning to open the API for that, but it needs some love first (it was some of the first code I wrote in Cursive and is very crufty, and doesn’t integrate with IntelliJ as well as it could).

cfleming01:01:00

@danielcompton IntelliJ has a “Comment with block comment” command which I’m planning to make do that, but there’s nothing right now.

tianshu01:01:09

that's a good plan!

Drew Verlee13:01:10

Does cursive support parnifer and in line s expression evaluation that shows right next to the s expression? The latter is sort of like what happens when I debug in Java. Answer to parnifer is yes.

dadair14:01:58

@genekim if you look under Help, I believe there is a menu item that says “... cursive cheat sheet” where ... is download or something. It should bring up a page externally that shows a bunch of cursive specific keybindings. Check if those are working?

dadair14:01:19

If they aren’t, you could be missing some mappings

genekim17:01:13

Oh, great idea, @dadair — thanks! I’ll check it out when I dig my laptop out shortly!

shaun-mahood17:01:42

@genekim: I'm pretty sure those instructions are outdated - the cheatsheet is under Help -> Show Cursive Cheatsheet. There used to be a big song and dance to get keybindings set up and Colin fixed a bunch of that pretty recently.

shaun-mahood17:01:34

@danielcompton: I've setup a shortcut for #_ by recording and binding a macro - it's kind of inconvenient since you have to do it from the start of the form but still better than nothing.

danielcompton19:01:00

@shaun-mahood thanks, I’ll check it out

cfleming22:01:40

@genekim Right, I changed that recently because it was very confusing. However I haven’t yet updated my doc, which is even more confusing 😕

cfleming22:01:28

Not all the commands are mapped because IntelliJ already uses so many keybindings, I have to leave it up to the user which conflicts are acceptable to them.