Menu

Del to right/left

2007-12-20
2012-11-13
  • Nobody/Anonymous

    PSP has the option to delete text from the cursor to the end of line
    (delete to right)
    and to delete text from the beginning of the line to the cursor.
    (delete to left)

    Nothing similar in Npp?
    I tried it with macros but didn't work (bad knowledge of macros)

     
    • Nobody/Anonymous

      thank you.

      I had to do the SHIFT-END twice as well to go to the end of the line with word wrapping.

      Thank you for your help.

       
    • fidvo

      fidvo - 2007-12-20

      If you want to do it as a macro, try these:

      To delete to the end of line:

      Position cursor somewhere in the middle of a line.
      Macro -> Start Recording.
      SHIFT-END
      DELETE
      Macro -> Stop Recording.

      To delete to the beginning of line:

      Position cursor somewhere in the middle of a line that begins with a space or tab.
      Macro -> Start Recording.
      SHIFT-HOME
      SHIFT-HOME
      DELETE
      Macro -> Stop Recording.

      Note: You have to do the SHIFT-HOME twice because the first time takes you to the beginning of the non-whitespace characters.  The second one takes you to the beginning of the actual line.