Copy-paste not working well in terminal
See original GitHub issuecode-server
version: 1.31.0-20-x86_64-linux- OS Version: Ubuntu 18.04.1 LTS
- Client Info: macOS 10.14.3 + Chrome 72.0.3626.121
I’ve read Issue #161 and tried @avelino 's solution, but the copy-paste function still can’t work in terminal.
Steps to Reproduce
I recorded a video to show how to reproduce this issue:
- Select text in terminal and press <⌘ + C> to copy text
- Press <⌘ + V> to paste text (not working)
- Go to the editor area, then return back to the terminal
- Press <⌘ + V> again
Issue Analytics
- State:
- Created 5 years ago
- Comments:24 (8 by maintainers)
Top Results From Across the Web
Copy and paste doesn't work in the terminal - Ask Ubuntu
Mark the text, that you want to paste by pressing the left mouse button and move the mouse. · Press shift + ctrl...
Read more >Copy-paste not working well in terminal · Issue #237 - GitHub
Select text in terminal and press <⌘ + C> to copy text · Press <⌘ + V> to paste text (not working) ·...
Read more >How to Copy Paste in Linux Terminal [For Absolute Beginners]
Use Ctrl+Insert or Ctrl+Shift+C for copying and Shift+Insert or Ctrl+Shift+V for pasting text in the terminal in Ubuntu. Right click and selecting the...
Read more >Why doesn't copy and paste work in the terminal? - Quora
Copying and Pasting inside a terminal is different from that to in normal OS. You have to use Ctrl+Shift+C for copy and Ctrl+Shift+V...
Read more >copy paste option not working on terminal - 35891
copy paste option not working on terminal ... Ctrl + C and right botton + paste, and again the paste option was disable....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
step:1 , make sure code server is running on “https://” not http step:2, In Chrome set clipboard permission go to
chrome://settings/content/clipboard
and add your server url step3: now ctrl + v will work in code serverWhat browsers is everyone using? This problem only happens with me when using Firefox, with Chromium Ctrl + Shift + V works. One thing I noticed is that when I right click in the terminal, in Chromium next to paste it says the key combo, while in Firefox it says “must use keybind”.
I’m wondering if the key combo doesn’t work some of the time because the
nativeClibpoard
condition may not always be satisfied?I did some more testing and when I change that key combo condition to just
terminalFocus
, Ctrl + Shift + C works in Firefox to copy (not sure if changing the setting made that work), and Chromium still works too.Firefox might be blocking access to the clipboard since it’s coming from javascript, according to this, if it’s still accurate: https://support.mozilla.org/en-US/questions/1068472#answer-744685
I’m also messing with
about:config
in Firefox to see if I can allow that site access: http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboardIn the meantime, in addition to Ctrl + Shift + C for copy, Ctrl + Ins works for that too, while Shift + Ins works for paste.