-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Clipboard from SSH #2238
Comments
Same here, but from linux host to other linux machine. tested on kitty and urxvt terminals. micro v2.0.9 and v2.0.10
|
I managed to fix this for my case, X forwarding was needed. So, when starting ssh session, you need to enable X11 forwarding, as described in #305, so just |
Could you start any GUI app, eg |
The gui on the Pi is not turned on as I use SSH to talk to the Pi from my PC (Mobaxterm - as above - x11-forwarding is enabled). |
With xcel and xclip installed on the SSH-connected RPI, I just went into a text file in micro and used control-C to copy a part of the text. The bottom of the editor ssid "Copied selection". However as I went back to my PC and used control-V in Notepad++ - what was pasted was a URL I copied in Windows half an hour ago - so the clipboard from the RPI didn't get copied across to the PC. Further 0 Windows WIN+V shows all the items recently put into the clipboard and that does not include the RPi clipboard. So - I copied part of this message in Windows to the clipboard and what was pasted back into the RPI text file was the material originally copied in RPI, nothing from Windows... yet in NANO this all aorks seamlessly - no conditions. I'm not defending nano as, from a Windows user perspective it is awful compared to micro - APART from this important clipboard issue. |
In Windows - if I take the text "this is it" and copy it.... and then SSH to my RPi, the centre mouse button (no as good as Ctrl-V but do-able) pastes that text straight into the RPI command line or if NANO is open - straight into NANO. Vice-versa, This piece of text "lua:comment" was just pasted into Windows Github from the RPI NANO editor. All works as it should - but not in MICRO. |
Forcing micro to use terminal clipboard worked for me! Just run with option {
"clipboard": "terminal"
} |
Well, I just installed micro on a new RPi, tried both of the above options and now on my PC (which connects to the RPi via SSH using Mobaxterm) - when I do my usual centre or right mouse button - which DOES paste into the likes of NANO, when I try "./micro -clipboard terminal" and do the same operation with the mouse, I get a line at the bottom of micro, black lettering, brown background which says "No clipboard received from terminal" So, copy in Windows - move to SSH session, open nano, hit right-mouse, the content is pasted in. Close nano, open micro, right-click or centre click mouse - nothing comes in. Close micro, open nano, right-click mouse - that PC content still comes in. This really needs resolving somehow.... |
I had the same issue. |
Arch, KDE, Konsole Don't work at all. With X11 forwarding, clipboard can be extracted with |
Trying to use micro with https://github.com/sorenisanerd/gotty and https://github.com/xtermjs/xterm.js/ Tried all the Vim and nano in the same scenario work well. Probably awaiting for this xtermjs/xterm.js#3260 |
None of these work for me on Win+Kitty: why does it work without problem on nano? (no X11 setting is needed) |
I have the same issue with ssh access. |
Same for me. Using DietPi/ARMv8 64 on a Raspery Pi4 with xclip installed. Starting with micro -clipboard terminal does not work either. Copy/Paste works only in Linux not via SSH to Win10. |
October 2021 I first started this topic - it's looking like this isn't going to get fixed... I've reverted to other editors... shame. |
Just noting that I've switched to @scargill , you know, it's a wider problem, not project specific |
No copy even with "set clipboard terminal" on Debian 11 (micro version : 2.0.8-1+b6). |
Hi guys Any updates regarding this issue? Facing the same problem:
Changing the clipboard to terminal does NOT solve the problem on a RPi Zero W over SSH (puTTY) Please solve this 🙏 |
So far the only thing that works for me is to set "mouse": false on settings.json. Then micro behaves exactly like the rest of terminal apps, with right click opening a context menu or directly pasting, depending on your ssh/terminal settings. |
Environment: Windows 10 with Putty This way you don't have to disable mouse in micro. |
@hgraur nice. I just tried it and it works nicely. On Windows 11 and git-bash I have to use shift though instead of ctrl You can also use shift+Ins to paste from the host |
I've just discovered |
copying stopped working for me, but I have figured out how to fix, so, in my case the solution is to: |
Regards
Pete
Peter Scargill
https://tech.scargill.net
Calle Ceuta 14
Galera
Granada 18840
Spain
+34 634 326331
…
On 4 Jul 2024 at 13:09, Przemek Kitszel ***@***.***> wrote:
hmm, copying is not working for me too over ssh, all three modes of clipboard, also with/without X forwarding.
Other thing that is not working is Ctrl+arrows.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
This works well for Windows Terminal and WSL2 🎉🎉 |
I'm sure this isn't a new problem but it is new to me.
I installed micro on Raspberry Pi 4 just this week using:
curl https://getmic.ro | bash
Up to date PI OS and up to date Windows - all works PERFECTLY - and I use the editor in an SSH session from Windows - the clipboard from Windows to the editor is failing completely. Yet on the main MICRO page we see:
As its name indicates, micro aims to be somewhat of a successor to the nano editor by being easy to install and use. It strives to be enjoyable as a full-time editor for people who prefer to work in a terminal, or those who regularly edit files over SSH.
Nano copies and pastes back and forth to Windows no problem..
Ideas?
Specifications
Commit hash:
OS:
Terminal:
The text was updated successfully, but these errors were encountered: