Skip to content

Commit 17fc19a

Browse files
committed
!squash more window option
1 parent 345311a commit 17fc19a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/libtmux/window.py

+10
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ def set_window_option(
335335
unset: t.Optional[bool] = None,
336336
unset_panes: t.Optional[bool] = None,
337337
prevent_overwrite: t.Optional[bool] = None,
338+
suppress_warnings: t.Optional[bool] = None,
339+
append: t.Optional[bool] = None,
338340
) -> "Window":
339341
"""Set option for tmux window.
340342
@@ -375,6 +377,14 @@ def set_window_option(
375377
assert isinstance(prevent_overwrite, bool)
376378
flags.append("-o")
377379

380+
if suppress_warnings is not None and suppress_warnings:
381+
assert isinstance(suppress_warnings, bool)
382+
flags.append("-q")
383+
384+
if append is not None and append:
385+
assert isinstance(append, bool)
386+
flags.append("-a")
387+
378388
cmd = self.cmd(
379389
"set-window-option",
380390
f"-t{self.session_id}:{self.window_index}",

0 commit comments

Comments
 (0)