summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-10-11 18:08:54 -0700
committerNicholas Noll <nbnoll@eml.cc>2021-10-11 18:08:54 -0700
commit4978d2a4ebf2bc3d8a21a88169479ee11ba6efe0 (patch)
tree73cedd78f53a1c7093512e8d6b3a3ab5d6f2a67e
parent818fd8d0906f9bcc168146d18e8886caf16c0eee (diff)
fix(tmux): copy
-rw-r--r--.config/tmux/config4
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/tmux/config b/.config/tmux/config
index 0c13432..a9113af 100644
--- a/.config/tmux/config
+++ b/.config/tmux/config
@@ -53,9 +53,11 @@ bind-key [ copy-mode
bind-key ] paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
-bind-key -T copy-mode-vi y send-keys -X copy-selection
+bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
+bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
+
# URL view
bind-key u capture-pane \;\
save-buffer /tmp/tmux-buffer \;\