Community
    • Login

    Pasting "Alt drag blocks" doesn't work anymore

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 4 Posters 426 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.
    • S
      smnokars
      last edited by

      Hello there!

      When I try to paste “alt drag blocks” in Notepad++ it does not work as expected anymore.

      Instead of inserting the whole block, the lines are inserted directly behind the text and not as a block anymore.

      It’s hard to explain, thus I took some screenshots

      I try to copy a text block via “Alt + Mouse” and “Ctrl + C”:
      1.png

      Then I select the same amount of lines further right. Again wit “Alt + Mouse”:
      2.png

      With “Cntrl + V” I get this:
      4.png

      Instead of this:
      3.png

      On my other PC this works fine…

      Any ideas?

      Thanks a bunch in advance!

      Best regards,
      Norman

      CoisesC mkupperM 2 Replies Last reply Reply Quote 0
      • CoisesC
        Coises @smnokars
        last edited by Coises

        @smnokars
        See:
        https://community.notepad-plus-plus.org/topic/25837/alt-mouse-selection-change/6?_=1717507874509

        The tl;dr: is that yes, this changed, but there is an easy work-around. You don’t — and never did — need to make a zero-width rectangular selection before pasting; just put your cursor on the first line into which you want to paste. The remaining lines will be pasted into the same column in the following lines.

        S 1 Reply Last reply Reply Quote 0
        • S
          smnokars @Coises
          last edited by

          @Coises Thanks a lot.

          I hope I can get used to that. This feels so wrong!

          The behavior is now completely different to copying one line/word and pasting to a block.

          CoisesC Alan KilbornA 2 Replies Last reply Reply Quote 0
          • CoisesC
            Coises @smnokars
            last edited by

            @smnokars said in Pasting "Alt drag blocks" doesn't work anymore:

            This feels so wrong!

            Wait until you try to Ctrl+drag to copy.

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

              @smnokars said in Pasting "Alt drag blocks" doesn't work anymore:

              This feels so wrong!

              Hmm, having to do less work feels wrong? I’d think it would feel good! :-)

              1 Reply Last reply Reply Quote 0
              • mkupperM
                mkupper @smnokars
                last edited by mkupper

                @smnokars While Notepad++'s behavior has changed you can get exactly what you desire with a small change on your part.

                Step one remains the same. Use “Alt + Mouse” and “Ctrl + C” to create the selection and to load it into your copy/paste buffer.

                For step two though use Alt+left or regular mouse click at the spot where you want to paste the selection. This will move the text cursor or caret to the indicated spot. Now you can do Ctrl+V to paste and you will get

                123456789_1            123456789_1
                12345678               12345678
                123456789_12345        123456789_12345
                123456789_123456789    123456789_123456789
                

                You don’t need to create the skinny multi-row selection that matches the number of lines in the paste buffer that you were doing in step 2 before.

                Older versions of Notepad++ also worked this way with using Alt+left mouse click to position the text cursor or caret.

                The behavior change with multi-row selections has to do with what the developer calls multi-caret mode that was introduced in v8.6.

                If you have been using column selections then may want to go to Settings / Preferences / Editing 2 / and to turn off Enable Column Selection to Multi-Editing. That’s one of the new v8.6 features that v8.6 enabled by default. Turning it off restores some of the older behavior though apparently does not fix the issue you brought up here.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors