New bind key to paste tmux buffer.
This commit is contained in:
parent
fc6eba6dad
commit
22234bb8b9
|
@ -120,15 +120,20 @@ unbind C-p
|
|||
bind-key C-p previous-window
|
||||
|
||||
#Copy tmux buffer to CLIPBOARD
|
||||
unbind C-c
|
||||
unbind C-y
|
||||
bind-key y run-shell -b "tmux save-buffer - | xclip -i -selection clipboard"
|
||||
#Copy CLIPBOARD to tmux buffer and paste-it in tmux
|
||||
unbind C-v
|
||||
bind-key C-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
|
||||
|
||||
# Paste buffer
|
||||
unbind P
|
||||
bind-key P run "tmux paste-buffer"
|
||||
|
||||
# Window selection by name
|
||||
unbind b
|
||||
bind-key b command-prompt "find-window -NT '%%'"
|
||||
|
|
Loading…
Reference in New Issue