micro icon indicating copy to clipboard operation
micro copied to clipboard

Copy from macOS iTerm2 > Tmux > Micro

Open Write opened this issue 2 years ago • 3 comments

Description of the problem or steps to reproduce

Hi, I searched around Google but couldn't find a working answer. Going so far as reinstalling an xserver on macOS with brew and exporting display using -Y to forward it trough ssh unsecurely to no avail. I can't get copy to work from inside Micro inside a Tmux session on my iTerm2 Client. I have mouse-reporting enabled, and in-fact I can copy just fine from just tmux itself (Text is selected in yellow, and on release it copy just fine and report it back to macOS correctly, even if it's a remote SSH session). So my guess is that it struggle to go one level below (micro) and report it to tmux which has to report it back to iTerm2 client.

Thanks a lot for reading.

Specifications

Commit hash: b9763856 (2.0.10) OS: 12.13.1 (Client) - Linux Raspberry 5.4.0-1059-raspi #67-Ubuntu SMP PREEMPT Mon Apr 11 14:16:01 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux (Server) Terminal: iTerm2

Write avatar May 14 '22 18:05 Write

You can try as a workaround on MacOS to keep <Opt> key pressed while selecting text with mouse -- not perfect, but still better than nothing.

dimitrik-fr avatar Jun 09 '22 11:06 dimitrik-fr

Which key should I try to keep pressed ? Thanks

Write avatar Jun 09 '22 12:06 Write

Seems like Github messed-up the original input text ;-)) keep "Opt" (Option) key pressed while selecting text -- it should just work.

dimitrik-fr avatar Jun 10 '22 14:06 dimitrik-fr

Thanks, it seems to work. Great workaround for now. Would you know if it’s an iTerm2 feature ? If so, is there a way to change the key (instead of Alt/OPT, I would like to use an other key or combination), Thanks.

Le 10 juin 2022 à 16:19, dimitrik - notifications(a)github.com @.***> a écrit :

Seems like Github messed-up the original input text ;-)) keep "Opt" (Option) key pressed while selecting text -- it should just work.

— Reply to this email directly, view it on GitHub https://github.com/zyedidia/micro/issues/2428#issuecomment-1152413472, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEEIGXNARQNKGQWENSP32TVONFINANCNFSM5V54XFVA. You are receiving this because you authored the thread.

Write avatar Oct 11 '22 07:10 Write