Closed mrx23dot closed 2 years ago
I wonder, isn't that a question for a text editing program? It looks like for me that the user wants to paste a vertical block as simple text, the editor should allow that.
I tried multiple editors they all behave the same way, the problem is that the copied out text has some special characters that modify the pasting operation (i guess).
I would expect basic text to be copied out, especially when I explicitly select that option in settings.
Have you tried these other editors to copy text and paste it after? AFAIK that is expected behavior everywhere.
Yeah you were right, I checked the copied out text with hex editor, and it's what we would expect. The problem is on the receiving side.
Just to clarify some things.
When ConEmu puts the text into clipboard, it creates several different clipboard formats. For block selection there is a special one AFAIR.
I think it's possible to extend GuiMacro function to copy a block as a text. Not sure if it what's you want?
Now that's interesting, I verified that conemu differentiates the paste content based on destination.
On the hex editor above it detected that it can only paste one line, so it flatten the block correctly (with new lines). But when I paste into text editor it retains the block information, and also it overrides not just pastes.
And when I copy the content from hex editor to text editor it works as expected.
I think the overriding is not correct in the first place, and not sure if anyone uses the block insertion, I have never seen that in any editors.
Yeah, I would expect block as copied as simple text (with new lines) since I selected:
But I'm sure it behaves the same way for you, try it out, I didn't find it intuitive.
Versions
ConEmu build: ConEmuPack.210912.7z OS version: Windows 10 x64, win7 x64 Used shell version cmd admin
Problem description
"Block copy" out works fine, but when I try to paste it in to another app it tries to paste it as block, not as simple text.
Steps to reproduce
Actual results
Expected results
Additional files
Using default config.![2021-09-17 11_25_43-Settings xml ConEmu 210905 64 {Stable}](https://user-images.githubusercontent.com/4163396/133768104-b7c594c1-e1b5-4675-9c43-7edd55398620.jpg)
block copy out![2021-09-17 11_26_09-](https://user-images.githubusercontent.com/4163396/133768154-9c37930a-4771-45b8-86ab-59ed26968329.jpg)
original text in other app![2021-09-17 11_27_35-_ Untitled - Notepad2-mod (Administrator)](https://user-images.githubusercontent.com/4163396/133768337-c6e40097-59ac-4aa6-a1f7-0118a3b9d002.jpg)
after pasting it in![2021-09-17 11_27_20-_ Untitled - Notepad2-mod (Administrator)](https://user-images.githubusercontent.com/4163396/133768357-7f3d2445-72cc-4fb1-8149-848c0b4d8f6e.jpg)
what I expect![2021-09-17 11_31_17-_ Untitled - Notepad2-mod (Administrator)](https://user-images.githubusercontent.com/4163396/133768773-3987b079-e3ba-47ea-bd7a-5ac9338e9530.jpg)
99% of people wouldn't use this mode.