small medium large xlarge

Back to: All Forums  tmux 2
Matthew_avatar_313x313_20110131_pragsmall
11 May 2017, 13:36
Matthew Rankin (2 posts)

Since the copy-mode shortcut changes in tmux 2.4 are incompatible with 2.3, do you have a new recommendation for getting the OS X clipboard to work? I’ve seen a few different recommendations, but I haven’t researched enough to determine the advantages/disadvantages of the different solutions and would greatly appreciate your input.

Bphogan2016_pragsmall
11 May 2017, 14:34
Brian P. Hogan (174 posts)

Hey, thanks for reading!

Here’s what I’m currently testing:

unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"

I plan to update the book to have this issue addressed once I decide this is the way to go.

Matthew_avatar_313x313_20110131_pragsmall
12 May 2017, 13:58
Matthew Rankin (2 posts)

Currently, I’m using 1ambda’s recommendation found in tmux issue #592 shown below. Have you looked into tmux-yank? I haven’t used any tmux plugins yet, and would be curious as to your thoughts on that.

Thanks for such a great book—both the first and second editions.

bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key -Tcopy-mode-vi Escape send -X cancel
bind-key -Tcopy-mode-vi V send -X rectangle-toggle
You must be logged in to comment