15

Is it possible to go through a history of what you've typed into the Counterclockwise REPL in Eclipse? Like pressing the up-arrow or ctrl-p or various other things that work in other repls? Thanks! -Philip

DPM
  • 1,960
  • 3
  • 26
  • 49
Philip
  • 231
  • 1
  • 6

3 Answers3

17

Yes, sorry for not having taken the time to document everything.

What you're after is Ctrl+UP / Ctrl+DOWN keys.

Laurent Petit
  • 1,201
  • 7
  • 12
  • 1
    That doesn't seem to work on my OS X Snow Leopard machine. Any ideas? – Philip May 08 '11 at 01:57
  • @Phil Probably Cmd-up and Cmd-down. I don't use a mac, but my experience has been that where other systems use Ctl, the Mac uses Cmd (eg Cmd-C to copy). – amalloy May 09 '11 at 05:45
  • 1
    I'm also on a Mac. Neither Cmd, Control, nor anything other modifier I try works. :( – Rob N Apr 30 '12 at 00:47
  • 2
    I'm on OSX Snow Leopard and I can confirm that ctrl+up /ctrl+down works. – DPM Dec 10 '12 at 05:06
  • 3
    On OS X Lion & Counterclockwise 0.12.1.STABLE001, Ctrl+p/Ctrl+n seem to work. – Touko Mar 18 '13 at 20:15
1

For Counterclockwise version 0.8.0.STABLE001 I was able to use the standard Eclipse "Keys" preferences screen to redefine "Load next command from REPL's history" in the "In Clojure REPL" category to Cmd-Up thus getting the requested functionality to work in Eclipse Indigo on Mac OS X Lion.

slackhacker
  • 523
  • 4
  • 8
0

Testing on Counterclockwise version: 0.34.0.STABLE001
OS version: OSX El Capitan 10.11.6

Placing your cursor in the REPL command window that presents with <type Clojure code here> and:

Pressing control + p will navigate to the previous command in history.

Pressing control + n will navigate to the next command in history.

As comments on previous answers indicate this is different on a windows version of Counterclockwise.

Nrzonline
  • 1,600
  • 2
  • 18
  • 37