From 3873c74de8d8732758b63b2c18da855e74372010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 6 Sep 2024 14:02:40 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(tmux):=20better=20vim=20visual?= =?UTF-8?q?,=20yank=20and=20paste=20bindings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/tmux/conf/binds.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/tmux/conf/binds.conf b/.config/tmux/conf/binds.conf index ac521cd8..008eb9c0 100644 --- a/.config/tmux/conf/binds.conf +++ b/.config/tmux/conf/binds.conf @@ -10,6 +10,12 @@ bind C-r source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf relo setw -g mode-keys vi set -g status-keys vi +bind 'v' copy-mode +bind -T copy-mode-vi v send -X begin-selection +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy" +bind p paste-buffer +bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-copy" + # Split windows bind | split-window -hc "#{pane_current_path}" bind-key "\\" split-window -fh -c "#{pane_current_path}"