commit 10d636c2d1bcb4398f73920763a6bf26b4593ea8
parent 0f24de55a53dd8e0902d2b01443e1c5754008e80
Author: Alex Balgavy <alex@balgavy.eu>
Date: Mon, 11 Jan 2021 12:05:57 +0100
tmux: allow leaving copy mode with 'i' like in Vim
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tmux/tmux-dark.conf b/tmux/tmux-dark.conf
@@ -64,6 +64,9 @@ bind -T copy-mode-vi 'Y' send-keys -X copy-selection \; run-shell "tmux show-buf
# Search youtube
bind-key -T copy-mode-vi 'u' send-keys -X copy-selection \; new-window -n youtube \; send-keys -t youtube 'pipe-viewer "$(tmux show-buffer)" && tmux kill-window' 'Enter'
+
+# Cancel
+bind-key -T copy-mode-vi 'i' send-keys -X cancel
# }}}
# Windows {{{
diff --git a/tmux/tmux-light.conf b/tmux/tmux-light.conf
@@ -64,6 +64,9 @@ bind -T copy-mode-vi 'Y' send-keys -X copy-selection \; run-shell "tmux show-buf
# Search youtube
bind-key -T copy-mode-vi 'u' send-keys -X copy-selection \; new-window -n youtube \; send-keys -t youtube 'pipe-viewer "$(tmux show-buffer)" && tmux kill-window' 'Enter'
# }}}
+
+# Cancel
+bind-key -T copy-mode-vi 'i' send-keys -X cancel
# Windows {{{
# Vertical split