Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcut to evaluate an expression on the REPL in Cursive Clojure?

I want to be able to send the current expression to the REPL for evaluation in Cursive Clojure. I can do this in emacs. Does anybody know what the keyboard shortcut for doing this in Cursive Clojure is?

I'm looking for the Cursive Clojure equivalent of C-M-x

Edit: In this Tim Baldridge video (at 2.47) you can see he has evaluates expressions in the repl using a keybinding.

Evaluating expressions in Cursive Clojure using keybindings

like image 660
hawkeye Avatar asked Aug 28 '14 01:08

hawkeye


3 Answers

Open File --> Settings --> Keymap

Click on the "Collapse all" to be able to find the options easily

Then go to Main Menu --> Tools --> REPL

You will have there all the actions for the REPL. The specific one that you are asking for is "Run top form in REPL"

like image 179
DanLebrero Avatar answered Sep 21 '22 04:09

DanLebrero


According to the official site:

Key bindings

Currently Cursive is distributed without any shortcuts assigned to its actions - it’s too difficult to avoid conflicts with existing actions on all platforms. We’ll be suggesting some possible keybindings for various features of Cursive as we discuss them. When we talk about Mac keybindings we refer to the Mac OS X 10.5+ keymap, which is what we use - not the old Mac OS X one.

Assign your shortcuts yourself, here is how. See section keymaps.

like image 39
Mark Karpov Avatar answered Sep 22 '22 04:09

Mark Karpov


<Alt-Shift-P> (Send the surrounding expression to REPL) with Cursive 1.9.0. As mentioned, under Tools/REPL

like image 36
Marc Dzaebel Avatar answered Sep 21 '22 04:09

Marc Dzaebel