#97 Console history using cursor keys

closed
Nicolas
5
2006-09-18
2006-09-12
Dean Johnston
No

I'm used to being able to use the cursor or
page-up/page-down keys to recall long or complex
commands. A similar feature in the Jmol console would
be very useful.

djohnston@otterbein.edu

Discussion

  • Nicolas
    Nicolas
    2006-09-16

    Logged In: YES
    user_id=1096197

    Use key-up/key-down (not page-up/page-down) to recall
    commands, or am I missing something ?

     
  • Nicolas
    Nicolas
    2006-09-16

    • assigned_to: nobody --> nicove
    • status: open --> closed
     
  • Dean Johnston
    Dean Johnston
    2006-09-16

    Logged In: YES
    user_id=1145454

    Yes, cursor key-up or cursor key-down (on my laptop the same
    keys serve both purposes). The purpose would be similar to
    the old DOSKEY command in DOS or the behavior of most UNIX
    shells. (I suppose if somebody wants to get fancy TAB
    completion of commands would be really nice :-)

    Dean

     
  • Bob Hanson
    Bob Hanson
    2006-09-16

    Logged In: YES
    user_id=1082841

    this is referring to the applet/popup console, I think. I
    agree -- needs this

     
  • Nicolas
    Nicolas
    2006-09-17

    • assigned_to: nicove --> nobody
    • status: closed --> open
     
  • Nicolas
    Nicolas
    2006-09-17

    Logged In: YES
    user_id=1096197

    Ok, I am going to work on this.

    The command history in the application is managed by
    org.openscience.jmol.app.CommandHistory, which relies on
    LinkedList (since Java 1.2).
    To use it also in the applet, I think that we need to:
    - move CommandHistory to org.jmol.util package
    - rewrite CommandHistory so that LinkedList is not used
    anymore, if we want to preserve 1.1 compatibility for the applet

     
  • Nicolas
    Nicolas
    2006-09-17

    • assigned_to: nobody --> nicove
     
  • Bob Hanson
    Bob Hanson
    2006-09-18

    Logged In: YES
    user_id=1082841

    Nico, are you planning then to replace the current
    applet/Console.java with this? (I hope)

    Bob

     
  • Nicolas
    Nicolas
    2006-09-18

    Logged In: YES
    user_id=1096197

    I have moved and redesigned CommandHistory so that it can
    work with JDK 1.1 (M$ JVM).
    The only thing left to do is calling this class from
    applet/Console.java. It's just a few lines to add, no need
    to replace it.

     
  • Nicolas
    Nicolas
    2006-09-18

    • status: open --> closed
     
  • Nicolas
    Nicolas
    2006-09-18

    Logged In: YES
    user_id=1096197

    Done, will be included in the next prerelease.
    Please test.