Skip to content

Commit

Permalink
py(deps): libtmux 0.34.0 for cmd w/ explicit targets (#919)
Browse files Browse the repository at this point in the history
This should alleviate issues with `-t` values of pane / shell commands.

See also:
- tmux-python/libtmux#535
- #915
  • Loading branch information
tony authored Mar 17, 2024
2 parents 43671ae + 02ca873 commit 3ece5b6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force

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

### 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_
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions src/tmuxp/cli/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]:
Expand Down

0 comments on commit 3ece5b6

Please sign in to comment.