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 8b9bc7d commit 48d90a2Copy full SHA for 48d90a2
tmuxp/window.py
@@ -71,6 +71,12 @@ def by(val, *args):
71
return list(filter(by, self.server._windows))[0]
72
73
def tmux(self, cmd, *args, **kwargs):
74
+ """Send command to tmux with :attr:`window_id` as ``target-window``.
75
+
76
+ Specifying ``('-t', 'custom-target')`` or ``('-tcustom_target')`` in
77
+ ``args`` will override using the object's ``window_id`` as target.
78
79
+ """
80
if not len([arg for arg in args if '-t' in str(arg)]):
81
args = ('-t', self.get('window_id')) + args
82
0 commit comments