We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55906e0 commit 7cc31f0Copy full SHA for 7cc31f0
src/tmuxp/cli/load.py
@@ -80,7 +80,7 @@ def set_layout_hook(session: Session, hook_name: str) -> None:
80
hook name to bind to, e.g. 'client-attached'
81
"""
82
assert session.id is not None
83
- cmd: t.List[str] = ["set-hook", "-t", str(session.id), hook_name]
+ cmd: t.List[str] = ["set-hook", hook_name]
84
hook_cmd = []
85
active_window = session.active_window
86
for window in session.windows:
@@ -103,7 +103,7 @@ def set_layout_hook(session: Session, hook_name: str) -> None:
103
cmd.append(_hook_cmd)
104
105
# create the hook
106
- session.cmd(*cmd)
+ session.cmd(*cmd, target=session.id)
107
108
109
def load_plugins(session_config: t.Dict[str, t.Any]) -> t.List[t.Any]:
0 commit comments