tmux: fix copy-paste
This commit is contained in:
parent
37f361bd8f
commit
4724bc14ac
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
# List of plugins
|
# List of plugins
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
|
||||||
set -g @plugin 'odedlaz/tmux-onedark-theme'
|
set -g @plugin 'odedlaz/tmux-onedark-theme'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
||||||
set -g @onedark_date_format "%d.%m.%y"
|
set -g @onedark_date_format "%d.%m.%y"
|
||||||
|
|
||||||
set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
|
@ -19,11 +19,11 @@ set -s escape-time 100
|
||||||
|
|
||||||
# Selection with mouse should copy to clipboard right away, in addition to the default action.
|
# Selection with mouse should copy to clipboard right away, in addition to the default action.
|
||||||
unbind -n -Tcopy-mode-vi MouseDragEnd1Pane
|
unbind -n -Tcopy-mode-vi MouseDragEnd1Pane
|
||||||
bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | xclip -i -sel primary > /dev/null"
|
bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | wl-copy --primary"
|
||||||
|
|
||||||
# Middle click to paste from the clipboard
|
# Middle click to paste from the clipboard
|
||||||
unbind-key MouseDown2Pane
|
unbind-key MouseDown2Pane
|
||||||
bind-key -n MouseDown2Pane run "tmux set-buffer \"$(wl-copy --primary)\"; tmux paste-buffer"
|
bind-key -n MouseDown2Pane run "tmux set-buffer \"$(wl-paste --primary)\"; tmux paste-buffer"
|
||||||
|
|
||||||
# Splitting
|
# Splitting
|
||||||
bind-key h split-window -h
|
bind-key h split-window -h
|
||||||
|
|
Loading…
Reference in a new issue