-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow paste with useSystemClipboard #1299
Comments
Another user reported issues and was using Win7 as well I believe...hmm Can you try the low level command and see what the speed is like? for example in CMD prompt:
https://www.labnol.org/software/copy-command-output-to-clipboard/2506/ |
Thanks - that command is fast, but it looks like the issue is with the pasting code upstream. var ncp = require("copy-paste");
ncp.copy("Some text to the clipboard", function () { console.log("done") }) // fast
> ncp.paste() // slow
'Some text to the clipboard' I haven't looked deeply but they are using some vbscript to grab and parse data from the clipboard which is probably the slow link. |
Great detective work @chris-b1. |
@xconverge's work to move to a different library should help with this: #1487 |
What did you do?
Copying and pasting a line a of text -
yy
thenp
. Any file type.When not using the system clipboard (
"vim.useSystemClipboard": false
) - the paste is nearly instant.When
"vim.useSystemClipboard":true
the paste is significantly slower - on the order of 1 second.From looking through past issues, it looks like https://github.com/xavi-/node-copy-paste is used to access the system clipboard, so possibly is an upstream issue?
Thanks.
Technical details:
The text was updated successfully, but these errors were encountered: