NotepadNext icon indicating copy to clipboard operation
NotepadNext copied to clipboard

missing end of line when copy in column mode

Open yiannisyu opened this issue 3 years ago • 3 comments

It is greate to have column mode available in NPN. This function works fine if you just select and copy. But if you move cursor to adjust the selection, then the copy result becomes one line. The expected result is to keep multi lines.

image

yiannisyu avatar Oct 12 '22 02:10 yiannisyu

When I ported that code over from my BetterMultiSelection plugin for Notepad++ I now recall I never got around to implementing the copy/paste functionality 😄

https://github.com/dail8859/NotepadNext/blob/f95910f0388ecf8329297b7871fb4589e4318c01/src/NotepadNext/decorators/BetterMultiSelection.cpp#L120-L124

dail8859 avatar Oct 12 '22 14:10 dail8859

I looked deeper into this and just uncommenting those sections of code is not enough. The shortcuts registered to Ctrl+C, Ctrl+V, etc is consuming the keyboard input before this section of the code gets to process it.

dail8859 avatar Oct 29 '22 19:10 dail8859

It is greate to have column mode available in NPN. This function works fine if you just select and copy. But if you move cursor to adjust the selection, then the copy result becomes one line. The expected result is to keep multi lines.

image

same issue here

smutao avatar Jul 14 '23 00:07 smutao