aboutsummaryrefslogtreecommitdiff
path: root/mac
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2021-09-04 12:23:10 +0200
committerJakob Stendahl <jakob.stendahl@outlook.com>2021-09-04 12:23:10 +0200
commit1b3e150d482e9e9e95c566f8f68ae833032c28f0 (patch)
tree13cbd671f26d17befd3bb466c6d2300c11501e5b /mac
parent65b7f91e51d90e93c3d7c6704c0a8265467a8ea7 (diff)
downloaddotfiles-1b3e150d482e9e9e95c566f8f68ae833032c28f0.tar.gz
dotfiles-1b3e150d482e9e9e95c566f8f68ae833032c28f0.zip
Change copy things in tmux
Diffstat (limited to 'mac')
-rw-r--r--mac/tmux.conf15
1 files changed, 10 insertions, 5 deletions
diff --git a/mac/tmux.conf b/mac/tmux.conf
index 9e2f86c..1f00d5d 100644
--- a/mac/tmux.conf
+++ b/mac/tmux.conf
@@ -42,11 +42,17 @@ bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
+# Set copying settings
+setw -g mode-keys vi
+set-option -s set-clipboard off
bind P paste-buffer
-bind-key -Tcopy-mode-vi 'v' send -X begin-selection
-bind-key -Tcopy-mode-vi 'y' send -X copy-selection
-bind-key -Tcopy-mode-vi 'r' send -X rectangle-toggle
-bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -sel clip -i'`
+bind-key -T copy-mode-vi 'v' send -X begin-selection
+bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
+bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -sel clip -i'`
+unbind -T copy-mode-vi Enter
+bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
+bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -ind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
+bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -i''
bind-key S-Left swap-window -t -1
bind-key S-Right swap-window -t +1
@@ -59,7 +65,6 @@ set -g bell-action any
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#set -wg xterm-keys 1
set -g mouse on
-#set-option -s set-clipboard off