From 9a1ce259621af4133fe4085ce2b6c56413d0008b Mon Sep 17 00:00:00 2001 From: Xaver Gruber Date: Sat, 18 Jan 2025 15:54:47 +0100 Subject: [PATCH 1/2] remove obsolete, tmux yank in copy mode works again --- .config/tmux/tmux.conf | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index f05b833..342fb6a 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -48,13 +48,6 @@ set -g @plugin 'tmux-plugins/tmux-yank' run '~/.tmux/plugins/tpm/tpm' -# set vi-mode -set-window-option -g mode-keys vi -# keybindings -bind-key -T copy-mode-vi v send-keys -X begin-selection -bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle -bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel - bind '"' split-window -v -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" From bf754bfd8a0f7f315b317d5026f82d69abc1804a Mon Sep 17 00:00:00 2001 From: Xaver Gruber Date: Sun, 19 Jan 2025 12:15:37 +0100 Subject: [PATCH 2/2] add back vi mode --- .config/tmux/tmux.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 342fb6a..1afbb79 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -48,6 +48,12 @@ set -g @plugin 'tmux-plugins/tmux-yank' run '~/.tmux/plugins/tpm/tpm' +# set vi-mode +set-window-option -g mode-keys vi +# keybindings +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle + bind '"' split-window -v -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}"