[PATCH] New option to get cwd of new windows from active window

2011-11-30 Thread Romain Francoise
Hi, This patch adds a new session option 'inherit-default-path' and the associated machinery to create new windows/panes in the same working directory as the active window instead of using the value of default-path. It affects only windows created from keys or the command prompt. Note that only

Re: [PATCH] New option to get cwd of new windows from active window

2011-11-30 Thread Thomas Adam
On Wed, Nov 30, 2011 at 09:48:31PM +0100, Romain Francoise wrote: Hi, This patch adds a new session option 'inherit-default-path' and the associated machinery to create new windows/panes in the same working directory as the active window instead of using the value of default-path. It

Re: [PATCH] New option to get cwd of new windows from active window

2011-11-30 Thread Romain Francoise
Thomas Adam tho...@xteddy.org writes: Why, when this is in the tmux FAQ? The solution in the FAQ is ugly. -- Romain Francoise rfranco...@debian.org http://people.debian.org/~rfrancoise/ -- All the data continuously

Re: [PATCH] New option to get cwd of new windows from active window

2011-11-30 Thread Nicholas Marriott
I'm genuinely not delighted about more OS-dependent code. Is there no portable solution to this? Even if it isn't quite as good. Otherwise, what's the use case here? I love that you sent code but how inconvenient is it to have more OS-dependent code verses the actual issue? And how inconvenient