Merge 2b8d83f806
into 4cb811769a
This commit is contained in:
commit
8901423eba
1 changed files with 15 additions and 0 deletions
15
.tmux.conf
15
.tmux.conf
|
@ -134,6 +134,21 @@ if -b 'command -v clip.exe > /dev/null 2>&1' 'bind y run -b "\"\$TMUX_PROGRAM\"
|
|||
if -b '[ -c /dev/clipboard ]' 'bind y run -b "\"\$TMUX_PROGRAM\" \${TMUX_SOCKET:+-S \"\$TMUX_SOCKET\"} save-buffer - > /dev/clipboard"'
|
||||
|
||||
|
||||
# -- Mouse and Key Bindings -------------------------------------------------
|
||||
|
||||
# Enable mouse support
|
||||
setw -g mouse on
|
||||
|
||||
# Set tmux mode-keys to vi for vi-style key bindings
|
||||
setw -g mode-keys vi
|
||||
|
||||
# Left-click (MouseDown1Pane) to copy to clipboard
|
||||
bind -Tcopy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "tmux save-buffer - | xclip -i -selection clipboard && tmux display-message 'Copied to clipboard'"
|
||||
|
||||
# Right-click (MouseDown3Pane) to copy to clipboard
|
||||
bind -Tcopy-mode-vi MouseDown3Pane send-keys -X copy-pipe-and-cancel "tmux save-buffer - | xclip -i -selection clipboard && tmux display-message 'Copied to clipboard'"
|
||||
|
||||
|
||||
# -- buffers -------------------------------------------------------------------
|
||||
|
||||
bind b list-buffers # list paste buffers
|
||||
|
|
Loading…
Reference in a new issue