We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6215bdb commit 25222e7Copy full SHA for 25222e7
src/libtmux/session.py
@@ -635,6 +635,10 @@ def new_window(
635
if window_name is not None and isinstance(window_name, str):
636
window_args += ("-n", window_name)
637
638
+ if window_index is not None:
639
+ # empty string for window_index will use the first one available
640
+ window_args += (f"-t{self.session_id}:{window_index}",)
641
+
642
if environment:
643
if has_gte_version("3.0"):
644
for k, v in environment.items():
0 commit comments