From 4978d2a4ebf2bc3d8a21a88169479ee11ba6efe0 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Mon, 11 Oct 2021 18:08:54 -0700 Subject: fix(tmux): copy --- .config/tmux/config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 \;\ -- cgit v1.2.1