Fork me on GitHub
#cursive
<
2021-03-01
>
reefersleep13:03:14

Cursive’s “navigate to definition” for e.g. spec keywords or re-frame keywords is wonderful, and I use it all the time. In my work project, we previously had a wrapper around spec definitions that took care of doing something else along with the spec definition, and that broke the navigation. I just wanted to see if perhaps there is some solution to this problem already, like being able to “register” your project specific (e.g.) spec-defining wrappers with Cursive somehow. Is that a thing?

reefersleep14:03:56

@jeffrey.wayne.evans brilliant! I wasn’t aware it worked like that.

reefersleep15:03:04

@jeffrey.wayne.evans do you know if this shareable?

reefersleep15:03:31

between developers in a team

reefersleep15:03:44

So that not every one has to configure stuff like this individually.

Jeff Evans15:03:05

yes, in fact I just found this out recently, but it’s lost to Slack history. give me a little while and I’ll dig it up again

Jeff Evans15:03:06

just click the gear icon there and Export, I think (haven’t actually tried it yet)

mikejcusack18:03:53

Is it possible to modify sending forms to the REPL? For example, wrapping something in a tap.

serioga19:03:00

You can create custom REPL command with such functionality.

cfleming19:03:31

Right, see https://cursive-ide.com/userguide/repl.html#repl-commands - you can create custom commands according to your needs

mikejcusack21:03:10

Have Reveal hooked up and tapping forms before sending working. Glad it was that simple!

cfleming21:03:36

Nice, glad it’s working!

serioga19:03:00

You can create custom REPL command with such functionality.

cfleming19:03:47

@jeffrey.wayne.evans @reefersleep In the config pane in Jeff’s screenshot, if you change the “IDE” scheme to “Project” then the configuration will be shared in the project files and can be checked into VCS etc.