Skip to content

Commit 48d90a2

Browse files
committed
Window.tmux docs
1 parent 8b9bc7d commit 48d90a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tmuxp/window.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ def by(val, *args):
7171
return list(filter(by, self.server._windows))[0]
7272

7373
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+
"""
7480
if not len([arg for arg in args if '-t' in str(arg)]):
7581
args = ('-t', self.get('window_id')) + args
7682

0 commit comments

Comments
 (0)