commit fbe66b53a70ea133f4b2caf4948ee12190fde8d8
parent f14aa7d6b7101d700cbc322dbb35a36bf973f6e6
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sat, 2 Jan 2021 19:54:37 +0100
tmux: allow sending to clipboard from copy mode
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tmux/tmux-dark.conf b/tmux/tmux-dark.conf
@@ -60,6 +60,7 @@ bind C new-session
# Tmux clipboard to system clipboard
bind Y run-shell "tmux show-buffer | clc" \; display-message "Tmux clipboard -> System clipboard"
+bind -T copy-mode-vi 'Y' send-keys -X copy-selection \; run-shell "tmux show-buffer | clc"
# 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'
diff --git a/tmux/tmux-light.conf b/tmux/tmux-light.conf
@@ -59,6 +59,7 @@ bind C new-session
# Tmux clipboard to system clipboard
bind Y run-shell "tmux show-buffer | clc" \; display-message "Tmux clipboard -> System clipboard"
+bind -T copy-mode-vi 'Y' send-keys -X copy-selection \; run-shell "tmux show-buffer | clc"
# 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'