Hello,
I recently upgraded from 2.3 to 2.4, and following the changelog I just need to replace them.
From:
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-pipe "xclip -in -selection clipboard"
to:
bind-key -t copy-mode 'v' begin-selection
bind-key -t copy-mode 'y' copy-pipe "xclip -in -selection clipboard"
Although I do not an error anymore, the commands simply do not work.
I am running Arch Linux (Updated) with Gnome 3 and gnome-terminal:
-> % uname -sp && tmux -V && echo $TERM
Linux unknown
tmux 2.4
xterm-256color
Did you read the CHANGES file?
@masterkorp Hi,
I recommend man tmux command search copy-mode and read from there.
bind-key -Tcopy-mode send -X ... stuff as explained in the Changes file is for emacs
This however bind-key -Tcopy-mode-vi .... is for vi bindings.
Here is a snapshot of tmux list-keys command so you can take it from there.
bind-key -T copy-mode-vi C-b send-keys -X page-up
bind-key -T copy-mode-vi C-c send-keys -X cancel
bind-key -T copy-mode-vi C-d send-keys -X halfpage-down
bind-key -T copy-mode-vi C-e send-keys -X scroll-down
bind-key -T copy-mode-vi C-f send-keys -X page-down
bind-key -T copy-mode-vi C-h send-keys -X cursor-left
bind-key -T copy-mode-vi C-j send-keys -X copy-selection-and-cancel
bind-key -T copy-mode-vi Enter send-keys -X copy-selection-and-cancel
bind-key -T copy-mode-vi C-u send-keys -X halfpage-up
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi C-y send-keys -X scroll-up
bind-key -T copy-mode-vi Escape send-keys -X clear-selection
bind-key -T copy-mode-vi Space send-keys -X begin-selection
Thank you for you input. The working commands now are:
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe "xclip -in -selection clipboard"
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Thank you for you input. The working commands now are: