-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Copy from terminal doesn't work [Windows/Insiders] #31902
Comments
@warpdesign to clarify, it's only happening when you release the mouse outside of the terminal? |
@Tyriar Yes, releasing the mouse outside of As long as I release the mouse inside this div it works as expected. |
Any idea when this will be fixed? It still happens in latest insiders build and is really annoying. Does it still need the |
Will be fixed when time allows, I'm pretty flooded with other issues atm though. It's open to PRs though. The root cause will likely be in https://github.com/sourcelair/xterm.js |
I played a little with |
It seems like this action is not ran when the mouse is released outside of the terminal div and actionRegistry.registerWorkbenchAction(new SyncActionDescriptor(CopyTerminalSelectionAction, CopyTerminalSelectionAction.ID, CopyTerminalSelectionAction.LABEL, {
primary: KeyMod.CtrlCmd | KeyCode.KEY_C,
linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_C }
}, ContextKeyExpr.and(KEYBINDING_CONTEXT_TERMINAL_TEXT_SELECTED, KEYBINDING_CONTEXT_TERMINAL_FOCUS)), 'Terminal: Copy Selection', category); |
One more thing I noticed, if I do the following:
The text is pasted as expected: maybe there is something wrong with |
Actually, the problem is with |
I think the problem is in this._instanceDisposables.push(dom.addDisposableListener(this._xterm.element, 'mouseup', (event: KeyboardEvent) => {
// Wait until mouseup has propagated through the DOM before
// evaluating the new selection state.
setTimeout(() => this._refreshSelectionContextKey(), 0);
})); The |
copy from terminal doesn't work #31902
Steps to Reproduce:
Screenshot1:
What happens: terminal scrolls to the bottom and the text that was previously in the clipboard (here
that's not what I copied
) is pasted, instead of the one I just copied using ctrl+cNow, if I don't end the selection (ie: release the left mouse button) before reaching the left side of the screen, it will work:
I am using the latest insider build (211ffdf) on Windows 10 (64bit).
I tried and could not reproduce the problem on a standard cmd prompt.
The text was updated successfully, but these errors were encountered: