zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
25.08k stars 1.17k forks source link

Copy from macOS iTerm2 > Tmux > Micro #2428

Open Write opened 2 years ago

Write commented 2 years ago

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

dimitrik-fr commented 2 years ago

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

Write commented 2 years ago

Which key should I try to keep pressed ? Thanks

dimitrik-fr commented 2 years ago

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

Write commented 2 years ago

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.