New bind-key in copy-mode vi-like to begin (v) a selection and copy (y)

it.
New bind-key to send tmux-buffer to X clipboard.
This commit is contained in:
Jeremy Gardais 2015-05-19 22:06:00 +02:00
parent dfa1b8bd4c
commit 10e2bbd1c5
1 changed files with 7 additions and 7 deletions

View File

@ -119,16 +119,16 @@ bind ^N next-window
unbind ^P
bind ^P previous-window
# Créer un nouveau terminal (CTRL+c)
#Copy tmux buffer to CLIPBOARD
unbind ^C
#bind ^C new-window
##CLIPBOARD selection integration
##Requires prefix key before the command key
#Copy tmux paste buffer to CLIPBOARD
bind ^C run "tmux show-buffer | xclip -i -selection clipboard"
#Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
bind-key y run-shell -b "tmux save-buffer - | xclip -i -selection clipboard"
#Copy CLIPBOARD to tmux buffer and paste-it in tmux
bind ^V run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
# Copy-mode
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# Détacher tmux
unbind ^D
bind ^D detach