Ok. I think I would prefer a flag (maybe to paste-buffer?) to send an existing buffer to the clipboard, rather than changing setb/loadb.
You would still be able to copy a buffer from loadb/setb with something like: loadb -btmp /my/file; pasteb -Xbtmp; deleteb -btmp On Mon, Dec 15, 2014 at 10:47:59AM -0800, Suraj N. Kurapati wrote: > On Mon, 15 Dec 2014 09:20:12 +0000, Nicholas Marriott wrote: > > Not sure about this, there are already tools to do this like xsel > > and xclip, what's the use case for tmux doing it too? > > xsel and xclip require X11 forwarding to be enabled in SSH to work. > And that's not all: I would have to update the $DISPLAY variable in > remote tmux sessions every time I reattach them for xsel and xclip. > > In contrast, the set-clipboard functionality does not require X11 > forwarding to be enabled and it also does not require any $DISPLAY > variable synchronization. It "Just Works", at the terminal level. > > Since tmux already provides the set-clipboard functionality in the > `copy-mode` command, extending this functionality to the `setb` and > `loadb` commands would give me an easy and consistent way to copy > text from any shell within tmux to the (remotely) attached terminal. > > Thanks for your consideration. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users