This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread 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

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

Counter Clockwise Eclipse Plugin and REPL Command Prompt

Ned Bakelman

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.



REPL Command Window

Sean Corfield
Ranch Hand

Joined: Feb 09, 2011
Posts: 278

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!
I agree. Here's the link:
subject: Counter Clockwise Eclipse Plugin and REPL Command Prompt
It's not a secret anymore!