-
Notifications
You must be signed in to change notification settings - Fork 298
Truncated copy/paste #2414
Comments
Confirmed using the Copying/pasting directly inside Oni (with The way we read the clipboard ( |
Hopefully this is a good first issue the related code is It would be interesting to know why the |
I took a quick look at this over the weekend, and here are a few things I found:
The simplest approach to me would be to change the |
@psxpaul thanks for investigating what was going on here and for the detailed feedback 👍, I think the |
It may be worth trying using Maybe added as a config option and the devs/insiders give it a try for a bit and then make it the default? |
This is a fix for some of the issues raised in #2414. One thing to note - there was some question as to whether win32yank works for everyone. I did find a possible workaround for that, if it's still an issue: ``` const textToPaste = clipboard.readText() const sanitizedTextLines = replaceAll(textToPaste, { "'": "''" }) await neovimInstance.command("let @+='" + sanitizedTextLines + "'") ``` I don't have a windows box to test this on, so perhaps we can add this code to `NeovimEditorCommands. pasteContents` later if needed.
Can this be closed now? |
@psxpaul Did you reproduce the error previously and confirm it is fixed now? |
I've tested the test case I gave and it is fixed for that, so I'll close this out now! Cheers @psxpaul ! |
**Oni Version: **
Operating System: windows
Issue:
Copy a large number of lines into Oni and only got paste partially.
The text was updated successfully, but these errors were encountered: