Fork me on GitHub
#cursive
<
2019-04-23
>
Jacob Haag17:04:17

Is there a way to format and align a form w/ Cursive?

;; without format
{:fooooooo "barrrr"
 :buzz "bar"}

;; with format
{:fooooooo "barrrr"
 :buzz     "bar"}

Björn Ebbinghaus17:04:53

Code > Reformat Code You do not have to set up anything. I recomend to use something like "Save Actions" to format automatically on save. The commit dialog allows you to format before commiting.

Jacob Haag17:04:15

Interesting, when I would use "Reformat Code" it wouldn't format the maps keys and values, I'll give it a go again

cfleming21:04:45

@U994BRXMF For that you need Preferences | Editor | Code Style | Clojure | General | Align map values

🎉 8
kenny17:04:52

Is there a reason I can no longer run more than one REPL? I remember I used to be able to open multiple REPL panes using a single nREPL session.

cfleming21:04:13

@kenny You used to be able to run multiple REPL processes. Someone mentioned the other day that there’s an option “Allow parallel run” which you need to check to allow that - I’m not sure if that’s new or not, I don’t remember seeing it previously. Unfortunately Cursive doesn’t seem to persist that flag, so I assume there’s something I need to fix to make that happen.

cfleming21:04:44

If you’re talking about spawning new sessions on an existing REPL process, Cursive has never allowed that although I do have a plan to do that soon.

kenny21:04:39

@cfleming I meant the former though I think I described the latter. Where is this "Allow parallel run" option?

kenny21:04:56

Found it - way at the top.

cfleming21:04:00

I’m planning to investigate what I need to do to make that persist.