Libtmux

Latest version: v0.37.0

Safety actively analyzes 638741 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 15

0.28.1

_Maintenance only, no bug fixes or new features_

Testing

- CI: Bump actions to node 20+ versions

Documentation

- Refine docs and add migration for v0.28.0

0.28.0

Breaking changes

Detached / unselected by default (523)

To ensure consistency and principle of least surprise, keep these set to
not use `-a` unless explicitly specified.

Breaking: {meth}`Session.new_window()` + {meth}`Window.split_window()` no longer attaches by default.

- 0.28.0 and greater: Defaults to `attach=False`.
- 0.27.1 and below: Defaults to `attach=True`.

To keep the old behavior in 0.28.0 and beyond, pass `attach=True` explicitly.

Improved resizing (523)

- Breaking: `Pane.resize_pane()` renamed to {meth}`Pane.resize()` (523)

This convention will be more consistent with {meth}`Window.resize()`.

- Breaking: {meth}`Pane.resize()`'s params changed (523)

- No longer accepts `-U`, `-D`, `-L`, `-R` directly, instead accepts
{class}`~libtmux.constants.ResizeAdjustmentDirection`).

- {meth}`Pane.resize()`:

- Accept adjustments via `adjustment_direction` w/
{class}`~libtmux.constants.ResizeAdjustmentDirection` + `adjustment`.

- Learned to accept manual `height` and / or `width` (columns/rows or percentage)

- Zoom (and unzoom)

- {meth}`Window.resize()`: Newly added

Tip: If {meth}`Pane.resize()` was not taking affect <= 0.27.1, try to resize with
{meth}`Window.resize()` first.

Fixes

- {meth}`Window.refresh()` and {meth}`Pane.refresh()`: Refresh more underlying state (523)
- {meth}`Obj._refresh`: Allow passing args (523)

e.g. `-a` (all) to `list-panes` and `list-windows`

- `Server.panes`: Fix listing of panes (523)

Would list only panes in attached session, rather than all in a server.

Improvement

- Pane, Window: Improve parsing of option values that return numbers
(520)
- `Obj._refresh`: Allow passing `list_extra_args` to ensure `list-windows` and
`list-panes` can return more than the target (523)

Tests

- pytest: Fix `usefixture` warning (519)
- ci: Add tmux 3.4 to test matrix (909)

0.27.1

Packaging

- Include `MIGRATION` in source distribution tarball (517, for 508)

0.27.0

Improvement

- QueryList typings (515)

- This improves the annotations in descendant objects such as:

- `Server.sessions`
- `Session.windows`
- `Window.panes`

- Bolster tests (ported from `libvcs`): doctests and pytests

0.26.0

Breaking changes

- `get_by_id()` (already deprecated) keyword argument renamed from `id` to
`Server.get_by_id(session_id)`, `Session.get_by_id(window_id)`, and `Window.get_by_id(pane_id)` (514)

Documentation

- Various docstring fixes and tweaks (514)

Development

- Strengthen linting (514)

- Add flake8-commas (COM)

- https://docs.astral.sh/ruff/rules/#flake8-commas-com
- https://pypi.org/project/flake8-commas/

- Add flake8-builtins (A)

- https://docs.astral.sh/ruff/rules/#flake8-builtins-a
- https://pypi.org/project/flake8-builtins/

- Add flake8-errmsg (EM)

- https://docs.astral.sh/ruff/rules/#flake8-errmsg-em
- https://pypi.org/project/flake8-errmsg/

CI

- Move CodeQL from advanced configuration file to GitHub's default

0.25.0

Improvement

- `Server.__eq__`, `Session.__eq__`, `Window.__eq__`, `Pane.__eq__` now returns `False` instead of raising `AssertionError` when type mismatches (505, 510)

Thank you m1guelperez for `Window.__eq__`! (505)

Development

- ci: Add pydocstyle rule to ruff (509)

Documentation

- Add docstrings to functions, methods, classes, and packages (509)

Page 3 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.