Skip to content

Commit 5da3190

Browse files
nvasilastony
authored andcommitted
Fixes #724
Respect start_directory for first pane.
1 parent 0110237 commit 5da3190

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tmuxp/workspacebuilder.py

+5
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,11 @@ def iter_create_windows(self, session, append=False):
261261
else:
262262
sd = None
263263

264+
# If the first pane specifies a start_directory, use that instead.
265+
panes = wconf["panes"]
266+
if panes and "start_directory" in panes[0]:
267+
sd = panes[0]["start_directory"]
268+
264269
if "window_shell" in wconf:
265270
ws = wconf["window_shell"]
266271
else:

0 commit comments

Comments
 (0)