Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Thomas Adam
Hi, On 22 February 2013 07:52, Nicholas Marriott wrote: > Hmm. Not sure I like scrambling all the other panes sizes but I don't > see offhand why it freezes. I take it you didn't do restore? I think I restored it by reapplying a different layout. The freeze most likely was due to closing a pane

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Aaron Jensen
You can try out my solution (it's a script, but there may be some ideas that are usable): https://github.com/aaronjensen/dotfiles/blob/master/bin/tmux-zoom https://github.com/aaronjensen/dotfiles/blob/master/tmux.conf#L86-L88 Basically it creates a new window with a temporary pane that it swa

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Nicholas Marriott
Hmm. Not sure I like scrambling all the other panes sizes but I don't see offhand why it freezes. I take it you didn't do restore? Thinking more a mode wouldn't do it because of course they are inside the pane :-). I think rather than removing the old layout we should just save it off and make a

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Thomas Adam
On 22 February 2013 07:18, Nicholas Marriott wrote: > It is about time we supported this properly - so you want keys to > maximize a single pane in the window so it covers all the others, then > restore it back? See: https://github.com/ThomasAdam/tmux/commit/4e8ede83ea62f43505347d367f2855d30d68

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Nicholas Marriott
Is it a script or code? How does it work? I'm thinking of implementing this by adding a window mode. On Fri, Feb 22, 2013 at 07:14:34AM +, Thomas Adam wrote: > On 22 February 2013 00:33, Thiago Padilha wrote: > > Is there a more tmux-friendly way for me to achieve same or similar effect? >

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Nicholas Marriott
It is about time we supported this properly - so you want keys to maximize a single pane in the window so it covers all the others, then restore it back? On Thu, Feb 21, 2013 at 09:33:35PM -0300, Thiago Padilha wrote: > Before tmux, I used to work gvim focused full screen and guake, a > terminal

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Aaron Jensen
> > I plan on submitting my hook patches instead which obsolete this. > > > > > > > > Oh, do you have them up somewhere? hooks would be awesome. > Found it: https://github.com/ThomasAdam/tmux/commits/ta/hook-support -

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Aaron Jensen
On Thursday, February 21, 2013 at 11:15 PM, Thomas Adam wrote: > On 22 February 2013 06:48, Thiago Padilha (mailto:tpadilh...@gmail.com)> wrote: > > Since the patch came from Thomas topic branch, I guess he plans to > > merge it eventually > > > > > I plan on submitting my hook patches instead

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Thomas Adam
On 22 February 2013 06:48, Thiago Padilha wrote: > Since the patch came from Thomas topic branch, I guess he plans to > merge it eventually I plan on submitting my hook patches instead which obsolete this. -- Thomas Adam -

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Thomas Adam
On 22 February 2013 00:33, Thiago Padilha wrote: > Is there a more tmux-friendly way for me to achieve same or similar effect? I think I have ta/maximise-pane in Git which was meant to do this; but it's old and would need cleaning up. -- Thomas Adam -

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Thiago Padilha
Since the patch came from Thomas topic branch, I guess he plans to merge it eventually On Fri, Feb 22, 2013 at 3:42 AM, Aaron Jensen wrote: > Ah, I thought my script had lots of moving parts… nice :) The var expansion > is interesting. I ended up using `tmux display-message -p …` to get things I

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Aaron Jensen
Ah, I thought my script had lots of moving parts… nice :) The var expansion is interesting. I ended up using `tmux display-message -p …` to get things I needed in my script. It would be nice to have something like that. Are there plans to get that into tmux proper? On Thursday, February 21,

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Thiago Padilha
Since I wanted a 'lightweight' solution that I could carry arround with my dot-files, I ended up implementing a very simple shared key/value store using the zsh/net/socket module: https://github.com/tarruda/dot-files/blob/master/.zsh/tmux.d/shm_daemon.zsh https://github.com/tarruda/dot-files/blob/m

Re: Your recipe on achieving this simple workflow

2013-02-21 Thread Aaron Jensen
I do something very similar, but take a slightly different approach. I think of it as "zooming" in on a pane. So if I have a window set up, I'll zoom a pane to break it out on its own, then return it to where it was. I got this from the tmux book but adapted it to be more resilient to window/pan

Re: [PATCH] Added support for Focus Event notification

2013-02-21 Thread Nicholas Marriott
Because until we support it we don't want stray \033[I and and \033[O coming through so we need to turn it off, and we can only send the code to turn it off to terminals we think will support it, ie those with XT. On Thu, Feb 21, 2013 at 12:07:12PM -0800, Aaron Jensen wrote: >I see, so why d

Re: [PATCH] Added support for Focus Event notification

2013-02-21 Thread Aaron Jensen
I see, so why do we want to disable it automatically in this case? — Sent from Mailbox for iPhone On Thu, Feb 21, 2013 at 10:44 AM, Nicholas Marriott wrote: > XT is a terminfo flag which says the terminal "has some xterm features", > tmux uses it as a guide to mean that we can try fancy stuff th

Re: [PATCH] Added support for Focus Event notification

2013-02-21 Thread Nicholas Marriott
Something in your mail system is mangling patches both in and out I guess because mine was fine when it left here and this one is mangled too :-). http://www.kernel.org/pub/software/scm/git/docs/git-format-patch.html has some bits about configuring various MUAs (Under "MUA-SPECIFIC HINTS"). Or jus

Re: [PATCH] Added support for Focus Event notification

2013-02-21 Thread Nicholas Marriott
XT is a terminfo flag which says the terminal "has some xterm features", tmux uses it as a guide to mean that we can try fancy stuff that works in xterm and may work elsewhere. We should probably use something else because not may terminfo entries actually have it (including the xterm terminfo its

Re: [PATCH] Added support for Focus Event notification

2013-02-21 Thread Nicholas Marriott
Actually I think this is the wrong approach because there are too many corner cases (you missed out at least attach, detach and linked windows). Please try this instead which just checks the panes at the end of the server loop. I think this will work better when you are listening for the keys in

Re: [PATCH] Added support for Focus Event notification

2013-02-21 Thread Aaron Jensen
Inlline... On Thu, Feb 21, 2013 at 9:28 AM, Nicholas Marriott < nicholas.marri...@gmail.com> wrote: > Ok the session_set_current_winlink idea is good so I have applied that > bit but renamed to session_set_current. > > Here is an updated diff with a few changes: > > - Spacing fixes. Looks like yo

Re: [PATCH] Added support for Focus Event notification

2013-02-21 Thread Nicholas Marriott
Ok the session_set_current_winlink idea is good so I have applied that bit but renamed to session_set_current. Here is an updated diff with a few changes: - Spacing fixes. Looks like your mailer mangles spaces. Can you fix that or send the diffs as an attachment instead? - Renamed window_pane_f

Re: Accessing two different windows in the same session

2013-02-21 Thread Mark Volkmann
Also see the section "Multiple Clients, One Session" at http://sett.ociweb.com/sett/settJan2013.html. On Tue, Feb 19, 2013 at 6:29 PM, Douglas Mayle wrote: > Perfect! > > Thank you very much for the help! > Doug > > > On Tue, Feb 19, 2013 at 4:24 PM, Nicholas Marriott < > nicholas.marri...@gmail

Re: xterm title stack support

2013-02-21 Thread Kresimir Kukulj
On 02/21/13 11:22, Nicholas Marriott wrote: > On Thu, Feb 21, 2013 at 10:55:48AM +0100, Kresimir Kukulj wrote: >> Thanks, >> >> I have looked up to xterm's support and its not too complicated. >> >> Also, ESCk sequence to set tmux window title is tmux specific ? >> [window-status-format "#W"] >> If

Re: xterm title stack support

2013-02-21 Thread Nicholas Marriott
On Thu, Feb 21, 2013 at 11:49:16AM +0100, Kresimir Kukulj wrote: > On 02/21/13 11:22, Nicholas Marriott wrote: > >On Thu, Feb 21, 2013 at 10:55:48AM +0100, Kresimir Kukulj wrote: > >>Thanks, > >> > >>I have looked up to xterm's support and its not too complicated. > >> > >>Also, ESCk sequence to se

Re: xterm title stack support

2013-02-21 Thread Kresimir Kukulj
Thanks, I have looked up to xterm's support and its not too complicated. Also, ESCk sequence to set tmux window title is tmux specific ? [window-status-format "#W"] If so, are they documented anywhere ? echo -ne "\033kTITLE\033\\" My goal is to replace multi-tabed terminal with plain terminal+t

Re: xterm title stack support

2013-02-21 Thread Nicholas Marriott
On Thu, Feb 21, 2013 at 10:55:48AM +0100, Kresimir Kukulj wrote: > Thanks, > > I have looked up to xterm's support and its not too complicated. > > Also, ESCk sequence to set tmux window title is tmux specific ? > [window-status-format "#W"] > If so, are they documented anywhere ? It came from s

Re: xterm title stack support

2013-02-21 Thread Nicholas Marriott
Not terribly difficult. Internally tmux just needs to record the old titles on a list and provide the push/pop sequences. Externally is even easier - we just need to send the push sequence when tmux starts and pop when it exits. No particular plans to do it soon though. On Thu, Feb 21, 2013 at 0

Re: [PATCH] Added support for Focus Event notification

2013-02-21 Thread Nicholas Marriott
Can you please drop the handling of focus events from outside tmux for now and just concentrate on those from inside? It is more complicated than it appears - what if a pane is active in sessions attached to two terminals? I suggest for now tmux explicitly turns this off if XT is present with \033

Re: [PATCH] Added support for Focus Event notification

2013-02-21 Thread Nicholas Marriott
But it will not affect all panes, because tmux should eat the sequence if the application in the pane did not request it. On Wed, Feb 20, 2013 at 11:52:57PM -0800, Aaron Jensen wrote: >On Wednesday, February 20, 2013 at 11:49 PM, Nicholas Marriott wrote: > > Are you telling me that in i