You want the -c option to new-window/split-window :-).
On Fri, Mar 16, 2012 at 01:05:36PM +0100, SamLT wrote: > > > Hello, > > To elaborate a bit more about the subject, here are some of the bindings > I have and use very often: > > bind c new-window > bind C set default-path "" \; new-window \; set default-path "~" > > bind s split-window -h > bind S set default-path "" \; split-window -h \; set > default-path "~" > > bind - split-window -v > bind _ set default-path "" \; split-window -v \; set > default-path "~" > > > > It's working correctly but it's not very nice and causes problem if I > want to change the value of default-path(which, I have to admit, does > not happen often) > > What would you think about an option to split-window and new-window to > temporarily set the default-path to something else, execute the action, > and then set it back to whatever it was set before? > > > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users