要件
- コピーモードで emacs キーバインドである
- tmux でコピーして GUI アプリ(ブラウザや GUI emacs) へペーストできる
- GUI アプリ(ブラウザや GUI emacs)でコピーして tmux にペーストできる
環境
- tmux v3.0α
設定
set -g mode-keys emacs
bind-key -T copy-mode C-w send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key C-y paste-buffer
bind C-m run "pbpaste | tmux load-buffer - && tmux paste-buffer"
課題
- 2種類のペーストを交互に実行すると片方が上書きされる