Fork me on GitHub
#cursive
<
2021-12-03
>
imre17:12:32

With data visualization tooling like Portal and Reveal getting more and more mature, I seem to be adding more and more repl commands to Cursive. Repl commands are awesome and it would be extremely good to see some QOL updates to the Edit REPL Commands window. I added an issue about the ordering of entries there: https://github.com/cursive-ide/cursive/issues/2622

cfleming21:12:34

Thanks, I’ll look at this.

imre22:12:54

Thank you, Colin!

salam18:12:48

Cursive doesn't balance let bindings with destructuring in them, is this intentional?

👍 1
imre19:12:11

I actually find this behavior nice

1
AJ Jaro20:12:50

I prefer the balanced let bindings, but this is clearly a preference option that should be available to enforce or not

cfleming21:12:03

Yes, this is deliberate since the destructuring forms can be very large (like your example). If you’d like a switch for that I can add one - I tend to try to resist more config options until people complain loudly enough.

👍 3
salam22:12:06

i think it's a valid strategy. 🙂 in this case, i would put the map on a new line anyway. but i'm curious what others think of it...

salam22:12:39

i just took a look at our codebase and it appears our team is ok with not balancing destructuring forms in let bindings. all good for now. :-)

Uken707:12:01

@cfleming Hi, I would really appreciate very much if there would be an option to balance this kind of let bindings. Also very often I want to align the pairs in some forms (like test and then statements in a cond or case) because of readability, is this something that others want? I really like Cursive, great job 👏 Colin.

cfleming21:12:08

Definitely better! Thanks, I’ll look at this, I haven’t looked at the new bookmarks stuff in detail yet.

salam22:12:44

i'm looking forward to it. 🙂

cfleming22:12:15

I just commented over on the issue with a few thoughts after looking at it briefly.

👍 1
Colin P. Hill21:12:25

When using a context action to insert a require, is there any way to get Cursive to insert it in a sort order, rather than just at the bottom?

cfleming21:12:50

I’m actually working on namespace ordering in general at the moment.

🎉 13
AJ Jaro12:12:01

In the meantime, there's an ok plugin to sort requires. https://plugins.jetbrains.com/plugin/13222-clojure-namespace-sort