This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Clojure and the fly likes Counter Clockwise Eclipse Plugin and REPL Command Prompt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » Clojure
Bookmark "Counter Clockwise Eclipse Plugin and REPL Command Prompt" Watch "Counter Clockwise Eclipse Plugin and REPL Command Prompt" New topic
Author

Counter Clockwise Eclipse Plugin and REPL Command Prompt

Ned Bakelman
Greenhorn

Joined: Nov 25, 2011
Posts: 12
There was a recent change made to the Counter Clockwise plugin for Eclipse where it is now required to press "Ctrl + Enter" to send a command to the REPL Server in the command window. In the past you just needed to press the "Enter" key.

This drove my crazy for a few days and just wanted to share.

Thanks

Ned

REPL Command Window

Sean Corfield
Ranch Hand

Joined: Feb 09, 2011
Posts: 259
    
    5

I posted this reply in the REPL and Eclipse thread where Ned commented on this but I'll repeat it here as well:

Just so folks know why: the CCW REPL has full structural editing, just like in the main editor - so enter inserts a newline and indents code. Unless you are at the end of a complete top-level form. You used to have to press shift-cmd-x (I think? at least on Mac OS X) to submit code when you were in the middle of a form - the shortcut for execute current form under the cursor when you're in the main editor. ctl-enter is a nicer shortcut key for submitting code and it's more consistent to make enter always behave like the editor and ctl-enter always submit the entire form. This may seem odd if you're not used to the strict structural editing mode - which I set as the default, as do most Clojurians - since this matches paredit in Emacs. Once you get used to paredit / strict structural mode, you'll never go back!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Counter Clockwise Eclipse Plugin and REPL Command Prompt