故改為 v 開始選擇,y 複製到 buffer。
以下貼到 ~/.tmux.conf
# Use v to trigger selection
bind-key -T copy-mode v send-keys -X begin-selection
# Use y to yank current selection
bind-key -T copy-mode y send-keys -X copy-selection-and-cancel
- <PREFIX> + [ 進入 copy mode。
- v 開始選擇。以方向鍵移動,會反白。
- y 複製到 buffer。
- <PREFIX> + ] 貼上 buffer 內的內容。
ps. <PREFIX> default 為 Ctrl-b
pps. $ tmux list-keys 可以列出 bind 的 keys
沒有留言:
張貼留言