-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Allow hooking or disabling paste events #1803
Comments
Can you listen for paste using this API and handle it on your end that way? Lines 473 to 482 in b5f1c33
This is how VS Code does it. |
Haven't considered this! Would |
@Eugeny I think so, in vscode I believe only "vscode keybindings" can trigger pastes and they end up firing this to do the actual paste: |
Can confirm this works. |
I'm currently handling paste myself, but it seems that it's impossible to disable xterm's internal paste handlers. The attached event handlers are irremovable, and pasteHandler isn't exported.
Could you please add an option to disable default paste handlers, or an access point to override its behaviour?
The text was updated successfully, but these errors were encountered: