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
|
bind-key C-p previous-window
|
||||||
|
|
||||||
#Copy tmux buffer to CLIPBOARD
|
#Copy tmux buffer to CLIPBOARD
|
||||||
unbind C-c
|
unbind C-y
|
||||||
bind-key y run-shell -b "tmux save-buffer - | xclip -i -selection clipboard"
|
bind-key y run-shell -b "tmux save-buffer - | xclip -i -selection clipboard"
|
||||||
#Copy CLIPBOARD to tmux buffer and paste-it in tmux
|
#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"
|
bind-key C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
|
||||||
|
|
||||||
# Copy-mode
|
# Copy-mode
|
||||||
bind-key -t vi-copy 'v' begin-selection
|
bind-key -t vi-copy 'v' begin-selection
|
||||||
bind-key -t vi-copy 'y' copy-selection
|
bind-key -t vi-copy 'y' copy-selection
|
||||||
|
|
||||||
|
# Paste buffer
|
||||||
|
unbind P
|
||||||
|
bind-key P run "tmux paste-buffer"
|
||||||
|
|
||||||
# Window selection by name
|
# Window selection by name
|
||||||
unbind b
|
unbind b
|
||||||
bind-key b command-prompt "find-window -NT '%%'"
|
bind-key b command-prompt "find-window -NT '%%'"
|
||||||
|
|
Loading…
Reference in New Issue