Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to tmux break copying #76

Closed
jtbraun opened this issue Jan 19, 2017 · 7 comments
Closed

Changes to tmux break copying #76

jtbraun opened this issue Jan 19, 2017 · 7 comments

Comments

@jtbraun
Copy link

jtbraun commented Jan 19, 2017

This commit tmux/tmux@76d6d36 reworks how copy-mode key tables works. -t emacs-copy and -t vi-copy are gone, and are roughly replaced with -Tcopy-mode and -Tcopy-mode-vi. There are other required changes in how these key bindings work (also summarized in the commit above), requiring the use of send-keys.

@jtbraun
Copy link
Author

jtbraun commented Jan 19, 2017

It looks like changing most of the commands in yank.tmux from/to below works, using copy-mode-vi instead of vi-copy.

You probably also want to use the new copy-pipe-and-cancel instead of copy-pipe.

tmux bind-key -t emacs-copy KEY COMMAND

to

tmux bind-key -T copy-mode KEY send-keys -X COMMAND

@jtbraun
Copy link
Author

jtbraun commented Jan 19, 2017

Here's an example set of changes that seem to work. The final solution should probably detect the tmux version and choose one set of binding commands over another.
jtbraun@8bd8bb6

Note that this commit also reflects changes I made to support copy-from-mouse-selection:
jtbraun@167a85d

@yevhen-m
Copy link

Have the same issue, y doesn't copy anymore.

@rcoedo
Copy link

rcoedo commented Jan 27, 2017

I'm having this issue too.

@rcoedo
Copy link

rcoedo commented Jan 27, 2017

If it helps, you can workaround this problem by installing the homebrew package "reattach-to-user-namespace" and adding this two lines to your tmux.conf

set -g default-shell $SHELL 
set -g default-command "reattach-to-user-namespace -l ${SHELL}"

not ideal but it seems to work!

@directorscut82
Copy link

directorscut82 commented Feb 6, 2017

currently only this works @ubuntu15.10|tmux2.3|fish:
bind-key -T copy-mode-vi y send -X copy-pipe "xclip -sel clip -i"

TMUX 2.3 copy to clipboard

@oblitum
Copy link

oblitum commented Apr 24, 2017

Got here from tmux/tmux#754. ArchLinux has just updated official repositories, triggering this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants