Menu

Non-standard behaviour of Home button

Geronimo
2006-10-04
2012-11-13
  • Geronimo

    Geronimo - 2006-10-04

    Pressing Home button does not moving me at the start of line. It switches me between first and first non-space characters on a line. This is controversial point and must be optional.

     
    • Nobody/Anonymous

      This is a standard behaviour in most editors. So I think behaviour of Notepad is OK and it could be optional.

       
    • Frigo

      Frigo - 2006-10-04

      Pressing Home twice will take you to the start of the line

      Don Ho, can you make it reversed, i.e. pressing once will take it to the start of the line, pressing twice will take it to the start of the text.

       
    • Geronimo

      Geronimo - 2006-10-04

      For most completeness, I think there should be 3 variants of option: 1) first press will take carret to the start of the text; 2) first press -- to the start of the line; 3) always to the start of the line.

       
    • Geronimo

      Geronimo - 2006-10-04

      Pressing Home twice not always will take me to the start of the line if my carret already at the start of text on line. In this case pressing Home twice will return me at the same position.

      Also, this makes a problem when using recorded macros, because macros does not take into account where carret currently placed. If carret already at the start of the line - the result will be unexpected.

       
    • Nobody/Anonymous

      Than record your macro something like that:

      END
      HOME
      HOME

      Now you are sure that the carret is at the begin of the line.

       
    • Geronimo

      Geronimo - 2006-10-05

      END-HOME-HOME is a dirty trick, but it fails in case if current line contains only spaces and carret is placed at the end of lines. If so, END-HOME-HOME will take me into the end instead start of string.

      Can you think out how to create an universal macro for removing current line (Ctrl-Y in many editors), which will never harm next line?

      Macro like END-HOME-HOME-(Shift+DownArrow)-DEL will harm next line.

       
    • Nobody/Anonymous

      Look to find out good shortcuts in shortcut mapper. Here you could see a shortcut for deleting lines: CTRL+L.

      Moving lines to previous line or to next line are possible with CTRL+SHIFT+ARROW(UP/DOWN)

      Best Regards
      Jens

       
    • Geronimo

      Geronimo - 2006-10-05

      I want just remove a line and nothing more. CTRL-L cuts line, i.e. copies it in clipboard before remove. What if my clipboard contains sensitive data?

       
    • Monty

      Monty - 2006-10-05

      How about this:
      END-RightArrow-(Shift+UpArrow)-DEL

      I think that covers all the cases except for the very last line in a file. Basically END-RightArrow-UpArrow can give you a "regular" HOME except for the last line.

      As an alternative, I think the combination END-Enter-(Shift+UpArrow)-DEL-DEL should work for every case.

       
    • Geronimo

      Geronimo - 2006-10-05

      Yes, this is good. But I using some funny trick:

      END-(letter "a")-HOME-HOME-(Shift+DownArrow)-DEL

      :)

       
      • Nobody/Anonymous

        Other editors I have do exactly the same thing :
        Home to first Char, then toggles SOL/NWC.
        I see that Ctrl-Shft-L deletes a line, without the cut into clipboard - is that good enough ?.

         
    • Geronimo

      Geronimo - 2006-10-09

      Oops. Yes, I'm fool. ;-(

       
    • Geronimo

      Geronimo - 2006-10-09

      Or this Shortcut (Ctrl-Shift-L) was introduced in 3.9?

       
      • pshute

        pshute - 2006-10-09

        I don't know when it was introduced, but it would help if you click on the message you're replying to before you post your comment.  Otherwise it messes up the threading here and makes the conversation hard to follow.

        On that subject, does anyone know why the threading works the way it does?  I see replies *under* the message they're replying to, but the newest ones are at the top!  I.e. it's a weird mixture of forward and reverse chonological sorting.  Is there some preference I can change to make it all forward or all reverse?

         
        • Geronimo

          Geronimo - 2006-10-10

          Usability of this (sourceforge.net) forum is very-very poor. It seems that it has been made by newbie of web-programming. There is too many ways to make a mistake and completely no ways to correct this mistakes. I really don't understand how so many people can use this forum every day. (If only they are masochists)

          My example of most good forum usability is Google Groups: http://groups.google.com/

           
          • pshute

            pshute - 2006-10-11

            I agree:
            - bizzare threading
            - no quoting
            - anonymous postings