Re: problem with new-window and current directory

2014-04-19 Thread Matteo Cavalleri
sorry, I didn’t test it. I either missed the mail or was so busy I forgot it. my linux machine is the one I use to work, so I’ll patch it tomorrow or as soon as I can. I’ll let you know if it works. thanks for the patch! > This doesn't actually fix the problem for me on Linux, does it for bot

Re: problem with new-window and current directory

2014-04-17 Thread Nicholas Marriott
> From: Balazs Kezes > Date: 17/04/2014 20:42 (GMT+00:00) > To: Nicholas Marriott > Cc: Matteo Cavalleri , > tmux-users@lists.sourceforge.net > Subject: Re: problem with new-window and current directory > >On 2014-04-17 15:25 +0100, Nicholas Marriott wrote:

Re: problem with new-window and current directory

2014-04-17 Thread Nicholas Marriott
Oh I tested it incorrectly. I'll look again when I get home. Original message From: Balazs Kezes Date: 17/04/2014 20:42 (GMT+00:00) To: Nicholas Marriott Cc: Matteo Cavalleri , tmux-users@lists.sourceforge.net Subject: Re: problem with new-window and current dire

Re: problem with new-window and current directory

2014-04-17 Thread Balazs Kezes
On 2014-04-17 15:25 +0100, Nicholas Marriott wrote: > This doesn't actually fix the problem for me on Linux, does it for > both of you? It does fix it for me. I actually use it for a while now and never seen a new pane starting in /. Can you tell me how do you test it and possibly step through the

Re: problem with new-window and current directory

2014-04-17 Thread Nicholas Marriott
This doesn't actually fix the problem for me on Linux, does it for both of you? On Sun, Mar 02, 2014 at 03:18:10PM +, Balazs Kezes wrote: > On 2014-02-27 22:09, Matteo Cavalleri wrote: > > $ cat /etc/hosts | less # the pipe is important here > > [...] > > so when I create a new window with e.

Re: problem with new-window and current directory

2014-03-06 Thread Nicholas Marriott
Hmm yeh you're right it needs pid Original message From: Balazs Kezes Date: 06/03/2014 15:00 (GMT+00:00) To: Nicholas Marriott Cc: Matteo Cavalleri , tmux-users@lists.sourceforge.net Subject: Re: problem with new-window and current directory On 2014-03-06

Re: problem with new-window and current directory

2014-03-06 Thread Balazs Kezes
On 2014-03-06 12:55, Nicholas Marriott wrote: > Why not getsid()? Don't you need a pid for that? I haven't tried but I think we could use /proc/(window_pane.pid)/cwd for this if we pass the pid down to this function and then we don't even need the session id queries at all. -- Balazs --

Re: problem with new-window and current directory

2014-03-06 Thread Nicholas Marriott
Why not getsid()? On Sun, Mar 02, 2014 at 03:18:10PM +, Balazs Kezes wrote: > On 2014-02-27 22:09, Matteo Cavalleri wrote: > > $ cat /etc/hosts | less # the pipe is important here > > [...] > > so when I create a new window with e.g. something piped to less the > > new window opens on the r

Re: problem with new-window and current directory

2014-03-02 Thread Balazs Kezes
On 2014-02-27 22:09, Matteo Cavalleri wrote: > $ cat /etc/hosts | less # the pipe is important here > [...] > so when I create a new window with e.g. something piped to less the > new window opens on the root directory, always. It seems that tmux tries to determine the pane's current directory by

Re: problem with new-window and current directory

2014-02-28 Thread Nicholas Marriott
>> Date: 27/02/2014 22:28 (GMT+00:00) >> To: Nicholas Marriott >> Cc: tmux-users@lists.sourceforge.net >> Subject: Re: problem with new-window and current directory >> >> >> well, from my point of view (and the way i usually work) that won't be a >> p

Re: problem with new-window and current directory

2014-02-28 Thread Matteo Cavalleri
) >> To: Nicholas Marriott >> Cc: tmux-users@lists.sourceforge.net >> Subject: Re: problem with new-window and current directory >> >> >> well, from my point of view (and the way i usually work) that won't be a >> problem at all, and in any case I think it

Re: problem with new-window and current directory

2014-02-28 Thread Matteo Cavalleri
Matteo Cavalleri > Date: 27/02/2014 22:28 (GMT+00:00) > To: Nicholas Marriott > Cc: tmux-users@lists.sourceforge.net > Subject: Re: problem with new-window and current directory > > > well, from my point of view (and the way i usually work) that won't be a > problem at

Re: problem with new-window and current directory

2014-02-27 Thread Nicholas Marriott
I think there might be pane_start_path as well which would work for you. Original message From: Matteo Cavalleri Date: 27/02/2014 22:28 (GMT+00:00) To: Nicholas Marriott Cc: tmux-users@lists.sourceforge.net Subject: Re: problem with new-window and current directory

Re: problem with new-window and current directory

2014-02-27 Thread Matteo Cavalleri
;>> about it. >>> >>> >>> Original message >>> From: Matteo Cavalleri >>> Date: 27/02/2014 21:09 (GMT+00:00) >>> To: tmux-users@lists.sourceforge.net >>> Subject: problem with new-window and current d

Re: problem with new-window and current directory

2014-02-27 Thread Nicholas Marriott
> > Date: 27/02/2014 21:09 (GMT+00:00) > > To: tmux-users@lists.sourceforge.net > > Subject: problem with new-window and current directory > > > > > > Hi, i?m using tmux 1.9a on osx and I have the following problem when i > > create a new window. > &g

Re: problem with new-window and current directory

2014-02-27 Thread Matteo Cavalleri
riginal message > From: Matteo Cavalleri > Date: 27/02/2014 21:09 (GMT+00:00) > To: tmux-users@lists.sourceforge.net > Subject: problem with new-window and current directory > > > Hi, i’m using tmux 1.9a on osx and I have the following problem when i create >

Re: problem with new-window and current directory

2014-02-27 Thread Nicholas Marriott
The mechanism is not always reliable, not sure there is much we can do about it. Original message From: Matteo Cavalleri Date: 27/02/2014 21:09 (GMT+00:00) To: tmux-users@lists.sourceforge.net Subject: problem with new-window and current directory Hi, i’m using tmux

Re: problem with new-window and current directory

2014-02-27 Thread Thomas Adam
On Thu, Feb 27, 2014 at 10:09:03PM +0100, Matteo Cavalleri wrote: > so when I create a new window with e.g. something piped to less the > new window opens on the root directory, always. On linux I’m compiling > tmux from sources and even with the latest commits I still get this > behavior. Is it f

problem with new-window and current directory

2014-02-27 Thread Matteo Cavalleri
Hi, i’m using tmux 1.9a on osx and I have the following problem when i create a new window. in my .tmux.config: bind-key c new-window -c '#{pane_current_path}’ steps to reproduce the problem $ cd $ tmux $ cd /usr/local C-b c -> creates a new window in /usr/local $ exit # closes the new windo