Open windows when starting session

2010-12-27 Thread Chris Poole
Hi, I want to open some windows by default when I start tmux. I have the following in .tmux.conf: neww -d neww -d -n ssh neww -d -n python ipython When starting tmux, I get the error "can't establish current session". However, I can then run command `source-file ~/.tmux.conf`, and t

Re: Open windows when starting session

2010-12-27 Thread Thomas Adam
On Mon, Dec 27, 2010 at 11:27:17AM +, Chris Poole wrote: > Hi, > I want to open some windows by default when I start tmux. > > I have the following in .tmux.conf: > > neww -d > neww -d -n ssh > neww -d -n python ipython > > When starting tmux, I get the error "can't establish cur

Re: Open windows when starting session

2010-12-27 Thread Chris Poole
> There is no session at this point. That makes sense, thanks. I assumed a session is made by default with some name like '0'. -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate d

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

2010-12-27 Thread Thomas Adam
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 starting point. Let's say you have 6 sessions, each with N windows -- som

[PATCH 1/3] Centralise printable window flag code.

2010-12-27 Thread Thomas Adam
Rather than hardcode where the printable window flags need to be used (such as on the status-line and choose-window list), introduce a printable_window_flags() function to return a list of flags. As a change of behaviour, now returns *all* window flags on a given winlink rather than a single flag.

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

2010-12-27 Thread Thomas Adam
Factor out the code which puts the choice of choosing windows and/or sessions into a common place. --- cmd-choose-session.c | 28 + cmd-choose-window.c | 35 ++-- window-choose.c | 107 ++ 3 files changed, 113 inser

[PATCH 3/3] Introduce cmd-choose-tree

2010-12-27 Thread Thomas Adam
This creates a new command "choose-tree" which shows an overview of sessions and windows as a "tree", which amalgamates code from individually listing just sessions (choose-session) or just windows (choose-window). --- cmd-choose-tree.c | 141 +