Skip to content

Instantly share code, notes, and snippets.


Ivan Smirnov issmirnov

View GitHub Profile
issmirnov /
Last active Jul 10, 2020 — forked from gengmao/gist:75e86c1d9d5427f9632d
Select text from a remote tmux session in mouse mode and copy back to Mac

Forked from: Original Author: @gengmao Minor changes by @issmirnov, specifically update config for modern tmux and add some notes.

I like to use mouse mode in tmux to scroll text in windows/panes, however I found there is problem when I wanna select and copy text into local system clipboard.

The problem is described at The workaround is zoom tmux pane -> turn off mouse mode -> select with Option key and copy, then go back. But it is not ideal.

Fortunately I found and I tweak them a bit and got what I want - select text in one pane in mouse mode correctly and copy it back to Mac system clipboard.

View gitea.log
2019/08/18 01:25:35 ...les/context/panic.go:34:1() [E] PANIC:: runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:82 (0x44a620)
/usr/local/go/src/runtime/signal_unix.go:390 (0x44a44f)
/go/src/ (0x1387fbb)
/usr/local/go/src/reflect/value.go:447 (0x48f370)
/usr/local/go/src/reflect/value.go:308 (0x48edf3)
/go/src/ (0x9854b6)
/go/src/ (0x984dab)
/go/src/ (0x9b4f29)
/go/src/ (0x11d2a68)
issmirnov /
Created Jul 9, 2016
Authenticate me to keybase.

Keybase proof

I hereby claim:

  • I am issmirnov on github.
  • I am ismirnov ( on keybase.
  • I have a public key ASBJc4HkX8miV8dKeoe3dSmzX-EctgssUKyudFf611c5jAo

To claim this, I am signing this object: