From f2a21afb123e96f6ae0f5bac5d9a37edf926d04b Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Sun, 28 Jan 2024 21:05:42 +0100 Subject: [PATCH] Add a colon to the end of the target session when creating windows Otherwise the target might get interpreted wrong resulting in the window not being created. --- catmux/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catmux/window.py b/catmux/window.py index 18e1488..eae77e0 100644 --- a/catmux/window.py +++ b/catmux/window.py @@ -77,7 +77,7 @@ def create(self, first=False): tmux_wrapper = tmux.TmuxWrapper(server_name=self.server_name) target_window = ":".join([self.session_name, getattr(self, "name")]) if not first: - tmux_wrapper.tmux_call(["new-window", "-t", self.session_name]) + tmux_wrapper.tmux_call(["new-window", "-t", self.session_name + ":"]) tmux_wrapper.tmux_call( ["rename-window", "-t", f"{self.session_name}:$", getattr(self, "name")] )