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:
parent
dfa1b8bd4c
commit
10e2bbd1c5
14
tmux.conf
14
tmux.conf
|
@ -119,16 +119,16 @@ bind ^N next-window
|
||||||
unbind ^P
|
unbind ^P
|
||||||
bind ^P previous-window
|
bind ^P previous-window
|
||||||
|
|
||||||
# Créer un nouveau terminal (CTRL+c)
|
#Copy tmux buffer to CLIPBOARD
|
||||||
unbind ^C
|
unbind ^C
|
||||||
#bind ^C new-window
|
bind-key y run-shell -b "tmux save-buffer - | xclip -i -selection clipboard"
|
||||||
##CLIPBOARD selection integration
|
#Copy CLIPBOARD to tmux buffer and paste-it in tmux
|
||||||
##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 ^V run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
|
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
|
# Détacher tmux
|
||||||
unbind ^D
|
unbind ^D
|
||||||
bind ^D detach
|
bind ^D detach
|
||||||
|
|
Loading…
Reference in New Issue