diff --git a/CHANGES b/CHANGES index f5aa2ae5c96..928778a91e9 100644 --- a/CHANGES +++ b/CHANGES @@ -19,6 +19,12 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force +### Breaking changes + +- libtmux: 0.33.0 -> 0.34.0 (#919) + + Explicit targets in `cmd()` + ## tmuxp 1.41.1 (2024-03-17) _Maintenance only, no bug fixes or new features_ diff --git a/poetry.lock b/poetry.lock index 328694fa13f..8b50dbacc46 100644 --- a/poetry.lock +++ b/poetry.lock @@ -391,13 +391,13 @@ i18n = ["Babel (>=2.7)"] [[package]] name = "libtmux" -version = "0.33.0" +version = "0.34.0" description = "Typed library that provides an ORM wrapper for tmux, a terminal multiplexer." optional = false python-versions = ">=3.8,<4.0" files = [ - {file = "libtmux-0.33.0-py3-none-any.whl", hash = "sha256:aab8245798750ee6102c7df43e218763be42093e6293cdbe3926a80f21d59b76"}, - {file = "libtmux-0.33.0.tar.gz", hash = "sha256:5267e78a0026571f6b375be64bcf7e1681097adbec465c415007db90927d7a49"}, + {file = "libtmux-0.34.0-py3-none-any.whl", hash = "sha256:9415ab08dc97dcf1c8f8799ae6b319b31ada5c11262ba5b62bb24485c8595203"}, + {file = "libtmux-0.34.0.tar.gz", hash = "sha256:ba2b507956b6ff31aae3f0bb7999d521586133a02bc814245ef3b10b93d1458e"}, ] [[package]] @@ -1397,4 +1397,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "49c88a74a498a205f2a3a4c1fd7a129eb17c48e174e4f69cf0f596a670ecb0b5" +content-hash = "4fb50a6e242f6e7040d806f28e557c3d4505dee2ce582f12590d7b6970eca169" diff --git a/pyproject.toml b/pyproject.toml index 16106096f02..6e92c27c9ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ tmuxp = 'tmuxp:cli.cli' [tool.poetry.dependencies] python = "^3.8" -libtmux = "~0.33.0" +libtmux = "~0.34.0" colorama = ">=0.3.9" PyYAML = "^6.0" diff --git a/src/tmuxp/cli/load.py b/src/tmuxp/cli/load.py index 0e4b20eb007..f71976ad1fd 100644 --- a/src/tmuxp/cli/load.py +++ b/src/tmuxp/cli/load.py @@ -80,7 +80,7 @@ def set_layout_hook(session: Session, hook_name: str) -> None: hook name to bind to, e.g. 'client-attached' """ assert session.id is not None - cmd: t.List[str] = ["set-hook", "-t", str(session.id), hook_name] + cmd: t.List[str] = ["set-hook", hook_name] hook_cmd = [] active_window = session.active_window for window in session.windows: @@ -103,7 +103,7 @@ def set_layout_hook(session: Session, hook_name: str) -> None: cmd.append(_hook_cmd) # create the hook - session.cmd(*cmd) + session.cmd(*cmd, target=session.id) def load_plugins(session_config: t.Dict[str, t.Any]) -> t.List[t.Any]: