kevincox@lemmy.ml to Linux@lemmy.mlEnglish · 1 year agoWhat is your favorite terminal emulator.message-squaremessage-square149fedilinkarrow-up1133arrow-down12file-text
arrow-up1131arrow-down1message-squareWhat is your favorite terminal emulator.kevincox@lemmy.ml to Linux@lemmy.mlEnglish · 1 year agomessage-square149fedilinkfile-text
minus-squareRescuer6394@feddit.nllinkfedilinkarrow-up2·1 year agoah yes sorry i meant copy to system clipboard. i succeed in configuring vim so it uses the system clipboard on both local and remote sessions. i would like to do the same with tmux, but as you said too, it does not seem to be a way.
minus-square𝕽𝖚𝖆𝖎𝖉𝖍𝖗𝖎𝖌𝖍@midwest.sociallinkfedilinkarrow-up4·1 year agoYou absolutely can. You just have to use a clipboard command as the copy/paste. Add this to your ~/.tmux.conf bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel -i -b" bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xsel -i -b" or use your favorite cli clipboard command. Note that those are using the vi bindings; you might have to adapt the config.
ah yes sorry i meant copy to system clipboard.
i succeed in configuring vim so it uses the system clipboard on both local and remote sessions.
i would like to do the same with tmux, but as you said too, it does not seem to be a way.
You absolutely can. You just have to use a clipboard command as the copy/paste. Add this to your
~/.tmux.conf
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel -i -b" bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xsel -i -b"
or use your favorite cli clipboard command. Note that those are using the vi bindings; you might have to adapt the config.