Search code examples
clipboardnotepad++clipboarddata

Notepad++ vertical block select copy paste not retained across clips


I'm using Notepad++ to vertically select and copy blocks of text. Pasting the latest block of text (that is currently in the clipboard buffer) works fine, however going back to the second and third previous clipboard buffers (which were originally copied as blocks) does not paste these other buffers as blocks, but rather as a first line followed by newline, second line newline, etc, etc.

For example, suppose I block copy the following block

      test
      test
      test

The latest clipboard buffer pastes as

      test
      test
      test

assuming the cursor is 4 spaces indented. However, if the latest clipboard buffer is moved to the second place in the clipboard buffer queue, I get the following paste:

      test
test
test

I'm using ClipMate to store previous clipboard buffers.

Why does notepad++ know to block-paste the latest clipboard text data (copied as a block) but not the second to last clipboard buffer?

Is there a way to store a clipboard clips' block state?


Solution

  • It looks like Notepad++ is pasting from an internal buffer, and not taking the data from the clipboard. There IS a private data format called MSDEVColumnSelect, but if I try to force ClipMate to capture it, the data is empty. So this seems to be a case where the application is playing smoke-and-mirrors games with copy/paste, and it's not really a clipboard feature at all.