Working directory in new split panes preference not honored in tmux integration mode
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.0.7
- OS version: 10.11.6com.googlecode.iterm2.plist
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)
- Attach a debug log, if possible. Instructions at debuglog.txt
- Are you reporting a performance issue or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample
Detailed steps to reproduce the problem:
- Setup an advanced working directory configuration in your tmux profile where only new split panes get "Reuse previous session's directory" (I don't know if the problem is more widespread than this, but this is the environment I see it happen in).
- Configure tmux integration to open tmux windows as tabs in existing window.
- Run
tmux -CC
. - Change to any directory besides your home directory.
- From the new tmux tab, create a new split pane (I always use Command-shift-D). If it asks for a normal or tmux pane, choose tmux (I have mine set to always do a new tmux pane).
What happened:
New split pane opened in my home directory, not the one the original tmux pane was in.
What should have happened:
The new split pane should have opened in the same directory as the original tmux pane were I created the split.