Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    9 Posts 3 Posters 3.0k Views 1 Watching
    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. StephensonB Offline
      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?

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE Offline
        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 KilbornA 1 Reply Last reply Reply Quote 1
        • Alan KilbornA Offline
          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.

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

            @Alan-Kilborn

            Doesn’t that require a plugin??

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

            Alan KilbornA 1 Reply Last reply Reply Quote 1
            • Alan KilbornA Offline
              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!)

              EkopalypseE 1 Reply Last reply Reply Quote 2
              • EkopalypseE Offline
                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
                • EkopalypseE Offline
                  Ekopalypse
                  last edited by

                  Oh my lord,

                  SSOOOOORRRRRRYYYYYYYY

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

                  1 Reply Last reply Reply Quote 1
                  • Alan KilbornA Offline
                    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/

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

                      @Alan-Kilborn

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

                      1 Reply Last reply Reply Quote 0
                      • PeterJonesP PeterJones referenced this topic on

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors