Clean up clipboard settings for tmux

This commit is contained in:
Daniel Lynn 2021-08-06 12:48:58 -05:00
parent 65665dee3d
commit 4ecb1a5f66
Signed by: daniel
GPG Key ID: 28496A140E180A9D

View File

@ -16,17 +16,15 @@ bind-key -Tcopy-mode-vi Escape send -X cancel
bind-key -Tcopy-mode-vi V send -X rectangle-toggle bind-key -Tcopy-mode-vi V send -X rectangle-toggle
bind-key ] paste-buffer bind-key ] paste-buffer
# Integrate with the system clipboard
bind-key -n C-S-c run "tmux save-buffer - | xclip -i -sel clipboard"
bind-key -n C-S-v run "xclip -o -sel clipboard | tmux load-buffer -; tmux paste-buffer"
# Vi-mode pane switching # Vi-mode pane switching
bind-key h "select-pane -L" bind-key h "select-pane -L"
bind-key j "select-pane -D" bind-key j "select-pane -D"
bind-key k "select-pane -U" bind-key k "select-pane -U"
bind-key l "select-pane -R" bind-key l "select-pane -R"
# Integrate with the system selection clipboard # Integrate with the system clipboard
bind-key -n C-S-c run "tmux save-buffer - | xclip -i -sel clipboard"
bind-key -n C-S-v run "xclip -o -sel clipboard | tmux load-buffer -; tmux paste-buffer"
unbind -n -Tcopy-mode-vi MouseDragEnd1Pane unbind -n -Tcopy-mode-vi MouseDragEnd1Pane
bind-key -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | xclip -i > /dev/null" bind-key -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | xclip -i > /dev/null"
unbind-key MouseDown2Pane unbind-key MouseDown2Pane