You are not logged in.
Hello
In tmux copy-mode I'm using the vi-mode. So pressing "v" allows one to select text and "y" to paste the selected text. I want now that the selected text is after pressing "y" directly sent to my X clipboard, without using additional shortcuts.
I was searching the web for quiet a long time but didn't come up with a solution.
Is there anyone who is using something similar?
It seems it is possible doing so in a Mac [1].
Thanks for any solution!
Cheers
Reza
Offline
The same thing should work, except you'd use something like xsel instead of the mac-specific command in quotes in the binding.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Nevermind, I understood the whole problem wrongly.
Last edited by Jellicent (2013-10-23 12:03:11)
Offline
I tried
bind-key -t vi-copy y copy-pipe "cat | xclip -selection clipboard -i"but it doesn't work, what is the problem?
Offline
I've never used tmux in this way, nor have I used xclip. But you may want to call the pound, you have a stray cat lingering around.
"xsel -b" should be the equivalent of the osx instruction.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Hmm seems not to work for me...
Can someone test this, because I might have messed up something somewhere.
Offline