Menu

#7 shift-home shouldn't hop around

open-remind
None
5
2002-02-24
2002-01-07
No

Shift-home is used to highlight the text on the commandline.. don't have this hop the history around.

the shift-pageup/down is fine for that.

Discussion

  • Mark Patton

    Mark Patton - 2002-02-24

    Logged In: YES
    user_id=272

    Home, not Shift-Home scrolls to the top. I played with it a
    little bit and I'm not sure how to cleanly distinguish
    between Home and Shift-Home.

     
  • Mark Patton

    Mark Patton - 2002-02-24
    • status: open --> open-remind
     
  • Mark Patton

    Mark Patton - 2002-02-24
    • assigned_to: nobody --> msp
     
  • Kurt Hutchinson

    Kurt Hutchinson - 2003-07-11

    Logged In: YES
    user_id=379669

    I think it would be more intuitive if:
    * Home merely went to the
    beginning of the input line
    * Shift-Home selected everything from the
    cursor point to the beginning of the input line, and
    * Ctrl-Home scrolled
    the history window to the top

    At the least, Home should only go to
    the beginning of the input line or scroll to the top of the history window, but
    not both.

     
  • Kurt Hutchinson

    Kurt Hutchinson - 2003-07-16

    Logged In: YES
    user_id=379669

    As a response to my last comment on the various behaviors
    of Home, here's a small patch which implements my
    suggestions. In addition, End no longer scrolls to the end of
    the history window, Control-End does that. (Please forgive me
    if SourceForge messes up the formatting of this diff. If it
    does, I'll be happy to email it, but I think you'll get the gist
    regardless.)

    diff -u old/tk.tcl new/tk.tcl
    --- old/tk.tcl Fri Jul 11 15:30:27 2003
    +++ new/tk.tcl Wed Jul 16 13:53:35 2003
    @@ -912,8 +912,8 @@
    bind .input <Next> {.display$mmucl::Mmucl(cur) yview
    scroll 1 page; break}
    bind .input <Prior> \
    {.display$mmucl::Mmucl(cur) yview scroll -1 page;
    break}
    - bind .input <Home> {.display$mmucl::Mmucl(cur) see
    1.0}
    - bind .input <Key> {+.display$mmucl::Mmucl(cur) see
    end}
    + bind .input <Control-Home> {.display$mmucl::Mmucl(cur)
    see 1.0; break}
    + bind .input <Control-End> {+.display$mmucl::Mmucl(cur)
    see end; break}

    # bold font
    $w tag configure 1 \

     

Log in to post a comment.

MongoDB Logo MongoDB