Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to limit "Select Line" so it does not include carriage return/linefeed

    Help wanted · · · – – – · · ·
    3
    9
    736
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Brian F. Stephenson
      Brian F. Stephenson last edited by

      I go to the end of a line and double-click. I get the last word in the line highlighted. I then double-click again, and the whole line is selected, including the carriage return/line feed. How do I get Notepadd++ to just select the line, and stop at the last character, without including the CR/LF?

      Ekopalypse 1 Reply Last reply Reply Quote 0
      • Ekopalypse
        Ekopalypse @Brian F. Stephenson last edited by Ekopalypse

        @Brian-F.-Stephenson

        if you want it for copy, don’t select anything but put the caret into the line and press

        CTRL+SHIFT+X

        Alan Kilborn 1 Reply Last reply Reply Quote 1
        • Alan Kilborn
          Alan Kilborn @Ekopalypse last edited by

          @Ekopalypse said:

          if you want it for copy, don’t select anything but put the caret into the line and press

          Doesn’t that require a plugin??

          @Brian-F-Stephenson said:

          I then double-click again

          I think this is actually a triple-click.

          just select the line, and stop at the last character, without including the CR/LF?

          This was hotly debated a while ago, whether or not a “complete line” definition contains the line-ending (CR/LF in this case). Most people say it does, so that’s why triple clicking a line, or other methods of selecting a line include the line-ending part.

          Ekopalypse 1 Reply Last reply Reply Quote 0
          • Ekopalypse
            Ekopalypse @Alan Kilborn last edited by

            @Alan-Kilborn

            Doesn’t that require a plugin??

            nope - in default configuration SCI_LINECOPY : Ctrl+Shift+X

            Alan Kilborn 1 Reply Last reply Reply Quote 1
            • Alan Kilborn
              Alan Kilborn @Ekopalypse last edited by Alan Kilborn

              @Ekopalypse

              Haha, maybe I’m thinking of the Visual Studio Line Copy plugin (I don’t use it), but that one probably gets the “complete line” including the line-ending (I’m firmly in the camp that the line is no good without its ending!)

              Ekopalypse 1 Reply Last reply Reply Quote 2
              • Ekopalypse
                Ekopalypse @Alan Kilborn last edited by

                @Alan-Kilborn

                maybe I’m thinking of the Visual Studio Line Copy plugin

                :-D could be

                Unfortunately both mouse actions, the triple click and the line number margin click do the same. I would prefer having one selecting with and the other without eols
                but at the end I rarely use it.

                1 Reply Last reply Reply Quote 1
                • Ekopalypse
                  Ekopalypse last edited by

                  Oh my lord,

                  SSOOOOORRRRRRYYYYYYYY

                  CTRL+SHIFT+X copies WITH EOL, not without.

                  1 Reply Last reply Reply Quote 1
                  • Alan Kilborn
                    Alan Kilborn last edited by

                    @Ekopalypse

                    LOL on the EOL. Of course nobody tried it – nobody wants it!

                    Maybe this thread is of interest: https://notepad-plus-plus.org/community/topic/15859/copy-line-without-line-feed/

                    Ekopalypse 1 Reply Last reply Reply Quote 2
                    • Ekopalypse
                      Ekopalypse @Alan Kilborn last edited by

                      @Alan-Kilborn

                      unfortunately I can only upvote once. You are right!!!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright © 2014 NodeBB Forums | Contributors