So the following: bind -temacs-copy C-Up scroll-upīind -temacs-copy -R5 WheelUpPane scroll-upīecomes: bind -Tcopy-mode C-Up send -X scroll-upīind -Tcopy-mode WheelUpPane send -N5 -X scroll-up Commands are sent using the -X and -N flags to The emacs-copy and vi-copy tables have been replaced by the copy-mode andĬopy-mode-vi tables. The emacs-edit, vi-edit, emacs-choose and vi-choose tables have been replacedīy fixed key bindings in the command prompt and choose modes. Together with the -t flag to bind-key and unbind-key. Which I needed to change to: bind-key -n -T copy-mode-vi Enter send-keys -X copy-pipe 'xclip -i -sel p -f | xclip -i -sel c'īind-key -n -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe 'xclip -i -sel p -f | xclip -i -sel c' I had: bind-key -n -t vi-copy Enter copy-pipe 'xclip -i -sel p -f | xclip -i -sel c'īind-key -n -t vi-copy MouseDragEnd1Pane copy-pipe 'xclip -i -sel p -f | xclip -i -sel c' I paraphrase this Github comment to summarise the change briefly: Please note that, with Tmux 2.4 (since this commit), the binding syntax has changed. With all this, how can I copy a selection from copy mode to the clipboard? How are you?" | xclip -i -selection clipboard The odd thing is that I know that the " xclip -i -selection clipboard" part of the copy command above works well, since I can copy things to the clipboard in the command line, e.g.: echo "Hello world. However, pasting works great: bind-key -n C-y run "xclip -o | tmux load-buffer - tmux paste-buffer" I have tried the following for copying without luck: bind-key -n M-w run "tmux save-buffer - | xclip -i -selection clipboard"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |