• Login
Community
  • Login

Insert (paste) text without overwriting text on the next line

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
11 Posts 4 Posters 2.6k 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.
  • M
    Matt pointvicente
    last edited by Mar 16, 2021, 1:47 PM

    Every time I paste text from the clipboard (ie 4 lines). I have to press enter (4) times to create (4) new lines otherwise it will overwrite the existing text on the next line. This is regardless of whether or not the “insert” key is pressed. How can I prevent notepad++ from overwriting?

    A P 2 Replies Last reply Mar 16, 2021, 1:49 PM Reply Quote 0
    • A
      Alan Kilborn @Matt pointvicente
      last edited by Mar 16, 2021, 1:49 PM

      @Matt-pointvicente

      My experience is that Notepad++'s paste NEVER overwrites existing data.
      Not sure why yours would be different. :-(

      1 Reply Last reply Reply Quote 1
      • P
        PeterJones @Matt pointvicente
        last edited by Mar 16, 2021, 2:20 PM

        @Matt-pointvicente said in Insert (paste) text without overwriting text on the next line:

        This is regardless of whether or not the “insert” key is pressed.

        Are you sure? Can you show a screenshot, including the status bar, when you’ve done a paste when you think you are in INSERT mode but it overwrites?

        Also, is it behaving like ALT key is stuck? – if Windows Accessibility turned on persistent ALT, then you might be doing a column-paste without knowing it.

        Maybe you have a strange plugin. Please share ?-menu’s Debug Info.

        A 1 Reply Last reply Mar 16, 2021, 5:09 PM Reply Quote 1
        • E
          Ekopalypse
          last edited by Ekopalypse Mar 16, 2021, 4:21 PM Mar 16, 2021, 4:20 PM

          @Matt-pointvicente
          Also, if the copy/paste action is from Npp, are you using a rectangular selection?
          If not, does the paste work as with a rectangular selection?

          1 Reply Last reply Reply Quote 1
          • A
            Alan Kilborn @PeterJones
            last edited by Alan Kilborn Mar 16, 2021, 5:10 PM Mar 16, 2021, 5:09 PM

            @PeterJones said in Insert (paste) text without overwriting text on the next line:

            when you’ve done a paste when you think you are in INSERT mode but it overwrites?

            But Insert/overwrite doesn’t matter for paste (it always inserts), so…

            you might be doing a column-paste

            But column-paste never overwrites data either, although a quick look at it after the paste may lead you to believe it, but if you really examine it you see nothing was overwritten, just perhaps moved a bit.

            The only way an overwrite occurs is if you have some selected text active when you paste.

            Related, but the opposite “problem”: https://community.notepad-plus-plus.org/topic/18715/how-to-paste-a-selection-in-the-same-way-as-typing-in-overwrite-mode

            E 1 Reply Last reply Mar 16, 2021, 5:11 PM Reply Quote 3
            • E
              Ekopalypse
              last edited by Mar 16, 2021, 5:10 PM

              oh - column paste == rectangular selection.
              Why do I always get confused about rows and columns ??

              Columns paste does overwrite data for me.

              1 Reply Last reply Reply Quote 1
              • E
                Ekopalypse @Alan Kilborn
                last edited by Mar 16, 2021, 5:11 PM

                @Alan-Kilborn

                you are right - not overwritten but merged somehow.

                A 1 Reply Last reply Mar 16, 2021, 5:13 PM Reply Quote 2
                • A
                  Alan Kilborn @Ekopalypse
                  last edited by Mar 16, 2021, 5:13 PM

                  @Ekopalypse

                  Don’t get me started about weirdnesses of column-mode again.

                  1 Reply Last reply Reply Quote 3
                  • E
                    Ekopalypse
                    last edited by Mar 16, 2021, 5:15 PM

                    :-D there is silence - nothing but silence :-D

                    1 Reply Last reply Reply Quote 2
                    • M
                      Matt pointvicente
                      last edited by Matt pointvicente Mar 19, 2021, 6:51 PM Mar 19, 2021, 6:50 PM

                      That’s because it starting working! But wait! Today it wasn’t working again but now I KNOW why. Its called:

                                    BLOCK SELECT  (ALT key)
                      

                      I forgot that block select causes this weird behavior. When I have free time (NOT) I’ll try to upload an example.

                      A 1 Reply Last reply Mar 19, 2021, 6:55 PM Reply Quote 0
                      • A
                        Alan Kilborn @Matt pointvicente
                        last edited by Mar 19, 2021, 6:55 PM

                        @Matt-pointvicente

                        Have you read the posts above?
                        Again, a “block select” does not overwrite data.
                        But sometimes it can appear like it is doing so.
                        But if you look at it closely you’ll see that it is not overwriting anything.

                        But I will agree that sometimes you don’t get the result you think you should, so you have to undo it, provide some blank lines and try the paste again.

                        But really, the result you achieved you sometimes need, when pasting column data in other situations.
                        So, you can’t have it “both ways”, it has to work the way it does so that the feature stays powerful.

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