Skip to content
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 pasting text in terminal with CTRL-V #1204

Open
timothyclemansinsea opened this issue Nov 3, 2016 · 13 comments
Open

Allow pasting text in terminal with CTRL-V #1204

timothyclemansinsea opened this issue Nov 3, 2016 · 13 comments

Comments

@timothyclemansinsea
Copy link

No description provided.

@afshin afshin added this to the Beta milestone Nov 3, 2016
@blink1073
Copy link
Member

Dev note: I couldn't get xterm.js to install on Windows 7 or 10 to try this out. I think it will require starting JupyterLab on a POSIX machine and logging in from a Windows machine to debug.

@blink1073
Copy link
Member

I was able to reproduce this by running jupyter lab --ip=0.0.0.0 and following these instructions to log in from my Windows 10 VM. Ctrl+Shift+V works for paste but not Ctrl+V. I am going to push this one to 1.0 since it may require changes to xterm.js to get it working.

@blink1073 blink1073 modified the milestones: 1.0, Beta Nov 21, 2016
@blink1073
Copy link
Member

I verified that this is also a problem with the classic notebook, which means it is not a result of any keyboard shortcut handling on the part of JupyterLab.

@brylie
Copy link

brylie commented Sep 25, 2017

CTRL-V pasting doesn't work for me in Kubuntu 17.04 + Firefox 55. Related issue or should I open a separate issue?

@blink1073
Copy link
Member

@brylie, I think that is the same issue.

@brylie
Copy link

brylie commented Sep 26, 2017

Cool. Should we rename the issue to something like "Allow pasting text in terminal with CTRL-V"?

@blink1073 blink1073 changed the title Ctrl-v in a terminal on Windows Chrome does not work Allow pasting text in terminal with CTRL-V Sep 26, 2017
@blink1073
Copy link
Member

Good call @brylie, updated.

@blink1073 blink1073 added enhancement and removed bug labels Sep 26, 2017
@blink1073
Copy link
Member

Dev note, this is possible using attachCustomKeyEventHandler. For Ctrl+C we can prevent the xterm default if there is selected text and instead put the text on the system clipboard. For Ctrl+V we always prevent the xterm default and let the browser fire a paste event.

@jasongrout jasongrout removed this from the 1.0 milestone Sep 5, 2018
@jasongrout
Copy link
Contributor

Does Ctrl+V usually paste into a normal terminal? I thought you had to use Ctrl+Shift+V to paste into terminals. (I'm on a mac now, which always works with Command+V, so I can't test.)

@jasongrout jasongrout added this to the Future milestone Sep 6, 2018
@t-makaro
Copy link

t-makaro commented Sep 6, 2018

ctrl+c and ctrl+v work in both cmd and powershell on windows 10, and I can confirm that it does work with powershell open in jlab on windows 10 just fine (didn't test with cmd in jlab).

@jasongrout
Copy link
Contributor

According to #1146 (comment), the copy/paste commands depend on what we are connected to, which seems consistent with what is reported here.

@jasongrout
Copy link
Contributor

I suggest we close this issue in favor of #1146, and we make #1146 about adding documentation to explain the various copy/paste shortcuts in the different systems. Thoughts? @blink1073?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants