You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
thanks a lot for sharing your tmux.conf. However, I need some more precisions with regard to yank. I'd like to select text and copy it from remote session and paste it into my local session. As I prefer keeping my own tmux.conf file I only grabbed the necessary part off your conf. file. So, I have inserted in my local tmux.conf the following:
yank="~/.tmux/yank.sh"
# Copy selected text
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "$yank"
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "$yank"
bind -T copy-mode-vi Y send-keys -X copy-line \;\
run "tmux save-buffer - | $yank"
bind-key -T copy-mode-vi D send-keys -X copy-end-of-line \;\
run "tmux save-buffer - | $yank"
bind -T copy-mode-vi C-j send-keys -X copy-pipe-and-cancel "$yank"
bind-key -T copy-mode-vi A send-keys -X append-selection-and-cancel \;\
run "tmux save-buffer - | $yank"
# Copy selection on drag end event, but do not cancel copy mode and do not clear selection
# clear select on subsequence mouse click
bind -T copy-mode-vi MouseDragEnd1Pane \
send-keys -X copy-pipe "$yank"
bind -T copy-mode-vi MouseDown1Pane select-pane \;\
send-keys -X clear-selection
I've got several questions:
Do I need to copy yank.sh on remote machine as well?
Do I need to insert the above extracted content to my remote tmux.conf as well?
Is set -g @copy_backend_remote_tunnel_port 11988 still necessary (coming from tmux.remote.conf)? If so, do I have to copy it onto the remote machine as well?
Hello,
thanks a lot for sharing your tmux.conf. However, I need some more precisions with regard to yank. I'd like to select text and copy it from remote session and paste it into my local session. As I prefer keeping my own tmux.conf file I only grabbed the necessary part off your conf. file. So, I have inserted in my local tmux.conf the following:
I've got several questions:
yank.sh
on remote machine as well?tmux.conf
as well?set -g @copy_backend_remote_tunnel_port 11988
still necessary (coming fromtmux.remote.conf
)? If so, do I have to copy it onto the remote machine as well?Thanks for your time.
Notes: as a Mac user, I have:
9999
remoteforward=9997 localhost:9999
(SSH)yank.sh
andtmux.remote.conf
, but don't know whether they must be copied on both machines or not.tmux-yank
plug-in installed on both machines. Just in case…I tested the following on remote session and it works:
What I'd like to do instead is selecting text on remote, press
y
key, and the selected content jumps into my local clipboard.The text was updated successfully, but these errors were encountered: