Fork me on GitHub
#cursive
<
2019-01-29
>
joshkh19:01:58

can i use cursive to save and then paste canned code into the repl? for instance, a stub of a datomic query: (d/q '{:find [] :in [$] :where [[]]} db)

manutter5119:01:41

You can do that with Live Templates (in Preferences under the Editor). Not specific to Cursive but it does work in the REPL

cfleming19:01:43

@joshkh To answer your earlier question, sadly the package renaming doesn’t work correctly at the moment.

cfleming19:01:17

@lennart.buit I’d have to double check, but I don’t think Cursive’s current formatting allows that, no. It’s not hard to add though.

Lennart Buit20:01:06

Hey, its obviously not very critical, thanks for responding tho!

cfleming19:01:56

@joshkh manutter51 is right, that sounds like a job for live templates.

cfleming19:01:10

You’ll be able to set variables in the templates to tab between etc.

joshkh19:01:30

that's okay about the package renaming. one day. 🙂 and thanks @manutter51 for the tip.