Re: [PATCH] Re: yank buffer to clipboard, like copy-mode does

2014-12-15 Thread Suraj N. Kurapati
On Mon, 15 Dec 2014 09:20:12 +, 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 th

Re: [PATCH] Re: yank buffer to clipboard, like copy-mode does

2014-12-15 Thread Nicholas Marriott
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

Re: [PATCH] Re: yank buffer to clipboard, like copy-mode does

2014-12-15 Thread Nicholas Marriott
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? On Sun, Dec 14, 2014 at 10:38:48AM -0800, Suraj N. Kurapati wrote: > On Fri, 12 Dec 2014 11:27:14 -0800, Suraj N. Kurapati wrote: > > Would it be possible to make `setb` and `l

[PATCH] Re: yank buffer to clipboard, like copy-mode does

2014-12-14 Thread Suraj N. Kurapati
On Fri, 12 Dec 2014 11:27:14 -0800, Suraj N. Kurapati wrote: > Would it be possible to make `setb` and `loadb` copy to clipboard? Attached is a rudimentary patch that enhances the `setb` and `loadb` commands to copy to the clipboard, just like the `copy-mode` command. Please consider adding this

yank buffer to clipboard, like copy-mode does

2014-12-12 Thread Suraj N. Kurapati
Hello, I have tmux configured to copy text I select with keyboard or mouse (in copy-mode) to my system clipboard: # yank to system clipboard rather than primary selection # http://invisible-island.net/xterm/terminfo-contents.html#tic-xterm_tmux set-option -ga terminal-overrides ',xterm*:Ms=