Skip to content

Commit 3ece5b6

Browse files
authored
py(deps): libtmux 0.34.0 for cmd w/ explicit targets (#919)
This should alleviate issues with `-t` values of pane / shell commands. See also: - tmux-python/libtmux#535 - #915
2 parents 43671ae + 02ca873 commit 3ece5b6

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

CHANGES

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force
1919

2020
<!-- Maintainers, insert changes / features for the next release here -->
2121

22+
### Breaking changes
23+
24+
- libtmux: 0.33.0 -> 0.34.0 (#919)
25+
26+
Explicit targets in `cmd()`
27+
2228
## tmuxp 1.41.1 (2024-03-17)
2329

2430
_Maintenance only, no bug fixes or new features_

poetry.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ tmuxp = 'tmuxp:cli.cli'
4747

4848
[tool.poetry.dependencies]
4949
python = "^3.8"
50-
libtmux = "~0.33.0"
50+
libtmux = "~0.34.0"
5151
colorama = ">=0.3.9"
5252
PyYAML = "^6.0"
5353

src/tmuxp/cli/load.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def set_layout_hook(session: Session, hook_name: str) -> None:
8080
hook name to bind to, e.g. 'client-attached'
8181
"""
8282
assert session.id is not None
83-
cmd: t.List[str] = ["set-hook", "-t", str(session.id), hook_name]
83+
cmd: t.List[str] = ["set-hook", hook_name]
8484
hook_cmd = []
8585
active_window = session.active_window
8686
for window in session.windows:
@@ -103,7 +103,7 @@ def set_layout_hook(session: Session, hook_name: str) -> None:
103103
cmd.append(_hook_cmd)
104104

105105
# create the hook
106-
session.cmd(*cmd)
106+
session.cmd(*cmd, target=session.id)
107107

108108

109109
def load_plugins(session_config: t.Dict[str, t.Any]) -> t.List[t.Any]:

0 commit comments

Comments
 (0)