This exact key binding works fine for me, are you sure you are not binding xsel -o by mistake?
On Wed, Dec 18, 2013 at 03:22:00AM +0100, Mikhail Morfikov wrote: > I'm trying to send content of tmux buffer to a system clipboard, the one > you can gain access through xsel -b . When I enter the copy mode and > select some lines, I can copy it by pressing enter. Now, to send this > to the system clipboard I have to type: > > $ tmux save-buffer - | xsel -b -i > > After that I'm able to paste the copied text, for example, in geany, > gedit or in whatever place I want. I tried to bind this action, so I > could use a shortcut, and I placed the following line in the tmux > config: > > bind C-y run "tmux save-buffer - | xsel -b -i" > > But this doesn't work. After pressing ctrl+a(prefix) + ctrl+y I got > screen which I think is a content of my system clipboard. This isn't the > text I copied in the copy mode in tmux. If I go to firefox and copy > something there, after pressing the shortcut, I get the copied content. > > When I list buffers, I can see the copied text which was selected in the > tmux copy mode, but I think the "run" command does nothing, or I'm > using it wrong. > > Anyway "tmux save-buffer -" works when typed manually, but it doesn't > when it's used in the tmux config file. Does anyone know why? > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users