• Login
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 1.9k Views
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.
  • B
    Brian F. Stephenson
    last edited by Aug 14, 2019, 5:29 PM

    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?

    E 1 Reply Last reply Aug 14, 2019, 5:34 PM Reply Quote 0
    • E
      Ekopalypse @Brian F. Stephenson
      last edited by Ekopalypse Aug 14, 2019, 5:35 PM Aug 14, 2019, 5:34 PM

      @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

      A 1 Reply Last reply Aug 14, 2019, 6:18 PM Reply Quote 1
      • A
        Alan Kilborn @Ekopalypse
        last edited by Aug 14, 2019, 6:18 PM

        @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.

        E 1 Reply Last reply Aug 14, 2019, 6:20 PM Reply Quote 0
        • E
          Ekopalypse @Alan Kilborn
          last edited by Aug 14, 2019, 6:20 PM

          @Alan-Kilborn

          Doesn’t that require a plugin??

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

          A 1 Reply Last reply Aug 14, 2019, 6:34 PM Reply Quote 1
          • A
            Alan Kilborn @Ekopalypse
            last edited by Alan Kilborn Aug 14, 2019, 6:34 PM Aug 14, 2019, 6:34 PM

            @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!)

            E 1 Reply Last reply Aug 14, 2019, 6:43 PM Reply Quote 2
            • E
              Ekopalypse @Alan Kilborn
              last edited by Aug 14, 2019, 6:43 PM

              @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
              • E
                Ekopalypse
                last edited by Aug 14, 2019, 6:53 PM

                Oh my lord,

                SSOOOOORRRRRRYYYYYYYY

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

                1 Reply Last reply Reply Quote 1
                • A
                  Alan Kilborn
                  last edited by Aug 14, 2019, 6:58 PM

                  @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/

                  E 1 Reply Last reply Aug 14, 2019, 7:00 PM Reply Quote 2
                  • E
                    Ekopalypse @Alan Kilborn
                    last edited by Aug 14, 2019, 7:00 PM

                    @Alan-Kilborn

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

                    1 Reply Last reply Reply Quote 0
                    • P PeterJones referenced this topic on Jul 7, 2023, 6:47 PM
                    1 out of 9
                    • First post
                      1/9
                      Last post
                    The Community of users of the Notepad++ text editor.
                    Powered by NodeBB | Contributors