Hi Sorry for the delay.
I like the new behaviour but I'm not averse to another case in cmd_get_default_path for the old if it can be derived without too much disruption. On Wed, Dec 19, 2012 at 11:32:31AM -0500, Benjamin Poirier wrote: > [ original thread: > http://thread.gmane.org/gmane.comp.terminal-emulators.tmux.user/3274/focus=3286 > ] > > commit 5d60bc7f7c43c20fcf65531b5a5fb1fc7dcbb338 > Author: Nicholas Marriott <nicholas.marri...@gmail.com> > Date: Mon Sep 24 14:05:38 2012 +0100 > > Use pgrp of pty fd not pid of immediate child when recovering current > working > directory (like current process). From Marcel Partap. > > > While this might improve the submitter's use case, it deteriorates mine... > tmux opens new windows in the cwd of the foreground process, but I would often > prefer the cwd of the shell. > > Consider, where I used to do: > ben@d2:~/local/src/tmux$ git show 5d60bc7f7c43c | colordiff | less > <tmux new-window> > ben@d2:~/local/src/tmux$ vi osdep-linux.c > > Now I'm stuck with: > ben@d2:~/local/src/tmux$ git show 5d60bc7f7c43c | colordiff | less > <tmux new-window> > ben@d2:~$ # oh no, wrong directory! Let's cd back to where I was... > > > And, where I used to do: > ben@d2:~/local/src/tmux$ man tcgetpgrp > <tmux new-window> > ben@d2:~/local/src/tmux$ vi osdep-linux.c > > Now I'm stuck with: > ben@d2:~/local/src/tmux$ man tcgetpgrp > <tmux new-window> > ben@d2:/usr/share/man$ # what? Let's cd back to where I was... > > > For some real fun, try running `find` with the post 5d60bc7 behavior: > ben@d2:~$ find ./ | less > <tmux new-window> > ben@d2:~/.cache/banshee-1/extensions/lastfm/84$ # really? > > > Besides Marcel and me, are there some people who strongly prefer the new > behavior, the old one? Is a revert warranted? Is a new "start-directory" > special value for "new-window" warranted? > > -Benjamin > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users