Fork me on GitHub
#cursive
<
2020-03-03
>
isak18:03:11

is there a shortcut to show autocomplete suggestions in IntelliJ/Cursive? I have the automatic thing turned off. I tried Control-Shift-Space, but that never has any suggestions to show. Maybe that is something else?

isak19:03:21

Control-Alt-Space does what I was asking.

markaddleman19:03:25

Currently, Cursive offers to paste HTML as Hiccup. I rarely use this feature but it suggests a related feature: When I paste EDN, I'd like to Cursive to quote the form so the reader won't interpret lists as functions.

dmarjenburgh19:03:45

Isn’t that the same as typing a quote and then pasting the form afterwards? Sometimes you might want paste code to eval

markaddleman20:03:13

Yep, it's exactly the same. I just forget the quote quite often.

cfleming22:03:20

Yes, the problem is detecting when something is EDN and when it’s code - I don’t think that can be done reliably.

markaddleman22:03:14

D'oh. Of course.

markaddleman22:03:59

Not sure if this is possible: Whenever I copy something from the repl, it is almost always edn. Do you know the source of the clipboard data?

gibb06:03:34

How would you accomodate the use case where someone wants to paste code instead if "auto-quoting" was introduced?

markaddleman18:03:19

I figure cursive would have to ask how to handle the paste similar to how it handles pasting HTML

cfleming22:03:15

The problem is that people paste Clojure code all the time, and HTML only occasionally.

markaddleman22:03:16

Es verdad 🙂