Re: One command to detach, showb, attach?

2010-12-28 Thread David Goodlad
I submitted that patch, originally from macports, to homebrew. It does have some issues with re-attaching sessions, so before upstreaming I wanted to sort those out. I'm going to have a play with it over the holidays, and will post when I've at least got it applying to HEAD. Dave On Wed, Dec 29,

Re: One command to detach, showb, attach?

2010-12-28 Thread Chris Poole
> Seems like the OP should apply the patch and get pbpaste, pbcopy working > within tmux, instead of trying to find dodgy workarounds. I did apply the patch, and it works, but then came across others having issues seemingly related to the patch: https://github.com/mxcl/homebrew/pull/3590andhttp

Re: [PATCH 0/3] RFC: Thinking about monitoring across sessions

2010-12-28 Thread Thomas Adam
On Tue, Dec 28, 2010 at 07:41:28PM +, Nicholas Marriott wrote: > I'm not convinced about showing multiple flags in the status line but I > need to give it a go and see. It'll probably be fine, I hardly ever have > more than one flag on any window. Try it and see if anyone screams? ;) I won't

Re: One command to detach, showb, attach?

2010-12-28 Thread Stroller
On 28/12/2010, at 4:56pm, Florian CROUZAT wrote: > On 2010-12-28, Stroller wrote: > >> Why are you detaching? >> >> Have you tried: >> alias tmuxcopy='tmux showb | pbcopy' >> ?? > > Search for the following discussion in the mailing-list archive : "OSX > 10.6.5 , Terminal.app, iTerm.app pbpas

Re: [PATCH 2/3] Centralise window/session choose-mode code.

2010-12-28 Thread Nicholas Marriott
On Tue, Dec 28, 2010 at 08:25:50PM +, Thomas Adam wrote: > On Tue, Dec 28, 2010 at 07:56:26PM +, Nicholas Marriott wrote: > > The best thing rather than messing around with a union or long might be > > to make the closure for the choose callback a struct which has the stuff > > to identify

Re: One command to detach, showb, attach?

2010-12-28 Thread Chris Poole
On Tue, Dec 28, 2010 at 4:56 PM, Florian CROUZAT wrote: > On 2010-12-28, Stroller wrote: > >> Why are you detaching? >> >> Have you tried: >>    alias tmuxcopy='tmux showb | pbcopy' >> ?? >> >> Stroller. > > Search for the following discussion in the mailing-list archive : "OSX > 10.6.5 , Terminal

Re: [PATCH 2/3] Centralise window/session choose-mode code.

2010-12-28 Thread Thomas Adam
On Tue, Dec 28, 2010 at 07:56:26PM +, Nicholas Marriott wrote: > The best thing rather than messing around with a union or long might be > to make the closure for the choose callback a struct which has the stuff > to identify session and window and client, then each command just uses > whicheve

Re: [PATCH 2/3] Centralise window/session choose-mode code.

2010-12-28 Thread Nicholas Marriott
I'm not sure about the type_flags stuff in here. I'd probably have some smaller functions like window_choose_add_window and window_choose_add_session which add 1 line with the window or session. Then for choose-window you do: for each window in session: if (window_choose_add_window(s, w, 0))

Re: [PATCH 0/3] RFC: Thinking about monitoring across sessions

2010-12-28 Thread Nicholas Marriott
On Mon, Dec 27, 2010 at 07:33:00PM +, Thomas Adam wrote: > Hi all, > > I've been giving some thought to monitoring the state of windows (winlinks) > across sessions, since it's something which I personally would find useful. > > I started to think of ways of displaying this information as a s

RE: One command to detach, showb, attach?

2010-12-28 Thread Florian CROUZAT
On 2010-12-28, Stroller wrote: > Why are you detaching? > > Have you tried: >alias tmuxcopy='tmux showb | pbcopy' > ?? > > Stroller. Search for the following discussion in the mailing-list archive : "OSX 10.6.5 , Terminal.app, iTerm.app pbpaste, pbcopy do not work under tmux" 0.02$ Florian

Re: One command to detach, showb, attach?

2010-12-28 Thread Stroller
On 28/12/2010, at 4:05pm, Chris Poole wrote: > I'm running tmux on a Mac, and want to use pbcopy and pbpaste. > > As a workable hack, I tried adding this to my .zshrc: > >alias tmuxcopy='tmux detach && tmux showb | pbcopy && tmux attach' Why are you detaching? Have you tried: alias tmu

Re: One command to detach, showb, attach?

2010-12-28 Thread Nicholas Marriott
With this command line all three commands run in the shell inside tmux. There is no way you can run a command inside tmux and have it inject into the shell outside tmux. The only thing you could do would be run tmux in a loop outside like while :; do tmux attach || break tmux showb|p

One command to detach, showb, attach?

2010-12-28 Thread Chris Poole
I'm running tmux on a Mac, and want to use pbcopy and pbpaste. As a workable hack, I tried adding this to my .zshrc: alias tmuxcopy='tmux detach && tmux showb | pbcopy && tmux attach' Ideally, I want one command to run in tmux (bound to a key), which will detach the current session, paste th

Re: tmux under windows using cygwin

2010-12-28 Thread Nicholas Marriott
Nope, not until Cgywin supports passing file descriptors over a Unix domain socket. On Tue, Dec 28, 2010 at 01:14:06PM +0100, Hamlet DArcy wrote: > Hi all, > > Is it possible to run tmux under Windows using cygwin? Can anyone point to a > how-to on this or any other relevant information? > >

tmux under windows using cygwin

2010-12-28 Thread Hamlet DArcy
Hi all, Is it possible to run tmux under Windows using cygwin? Can anyone point to a how-to on this or any other relevant information? My research so far has found nothing. Thanks in advance, -- Hamlet D'Arcy hamlet.da...@canoo.com