From 67417b09efb9f4719d1777cc10bc4652199d8d2e Mon Sep 17 00:00:00 2001 From: thek4n Date: Tue, 3 Dec 2024 16:23:02 +0300 Subject: [PATCH] tmux fix mouse copying --- home/user/.config/tmux/mappings.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index 6ca6fed..f186bce 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -177,6 +177,9 @@ bind -T copy-mode-vi C-v send-keys -X rectangle-toggle bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -selection clipboard" bind -T copy-mode-vi Y send-keys -X copy-selection-and-cancel +bind MouseDrag1Pane copy-mode +bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -i -selection clipboard" + bind -r p run-shell "xclip -selection clipboard -o | tmux load-buffer -; tmux paste-buffer -p" bind -r P paste-buffer -p