From cf8c226d2a19f1d554827a4c00a595186e91cf8d Mon Sep 17 00:00:00 2001 From: Kevin Yap Date: Sat, 5 Nov 2016 01:04:03 -0700 Subject: [PATCH] Select text with mouse to copy in tmux --- link/.tmux.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/link/.tmux.conf b/link/.tmux.conf index a3365a8..7fb52ec 100644 --- a/link/.tmux.conf +++ b/link/.tmux.conf @@ -38,6 +38,7 @@ bind-key -t vi-copy v begin-selection bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" unbind -t vi-copy Enter bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" +bind-key -t vi-copy MouseDragEnd1Pane copy-pipe "reattach-to-user-namespace pbcopy" # Reload ~/.tmux.conf using `C-a r` bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf" -- 2.51.2