| 1 |
# Changelog |
| 2 |
|
| 3 |
For instructions on installing the development version of libtmux, refer to |
| 4 |
[development releases](https://libtmux.git-pull.com/quickstart.html#developmental-releases). |
| 5 |
|
| 6 |
[pip](https://pip.pypa.io/en/stable/): |
| 7 |
|
| 8 |
```console |
| 9 |
$ pip install --user --upgrade --pre libtmux |
| 10 |
``` |
| 11 |
|
| 12 |
[pipx](https://pypa.github.io/pipx/docs/): |
| 13 |
|
| 14 |
```console |
| 15 |
$ pipx install \ |
| 16 |
--suffix=@next \ |
| 17 |
--pip-args '\--pre' \ |
| 18 |
--force \ |
| 19 |
'libtmux' |
| 20 |
``` |
| 21 |
|
| 22 |
Run the suffixed executable as: |
| 23 |
|
| 24 |
```console |
| 25 |
$ libtmux@next [command] |
| 26 |
``` |
| 27 |
|
| 28 |
[uv](https://docs.astral.sh/uv/): |
| 29 |
|
| 30 |
```console |
| 31 |
$ uv add libtmux --prerelease allow |
| 32 |
``` |
| 33 |
|
| 34 |
[uvx](https://docs.astral.sh/uv/guides/tools/): |
| 35 |
|
| 36 |
```console |
| 37 |
$ uvx --from 'libtmux' --prerelease allow python |
| 38 |
``` |
| 39 |
|
| 40 |
## libtmux 0.62.x (Yet to be released) |
| 41 |
|
| 42 |
<!-- To maintainers and contributors: Please add notes for the forthcoming version below --> |
| 43 |
|
| 44 |
<!-- KEEP THIS PLACEHOLDER - DO NOT REMOVE OR MODIFY THIS LINE --> |
| 45 |
_Notes on the upcoming release will go here._ |
| 46 |
<!-- END PLACEHOLDER - ADD NEW CHANGELOG ENTRIES BELOW THIS LINE --> |
| 47 |
|
| 48 |
## libtmux 0.61.0 (2026-07-04) |
| 49 |
|
| 50 |
libtmux 0.61.0 hardens support for the tmux 3.7 patch line. It fixes |
| 51 |
{meth}`~libtmux.Pane.break_pane` naming broken-out windows `libtmux` |
| 52 |
instead of tmux's own default on tmux 3.7a/3.7b, and adds |
| 53 |
{func}`~libtmux.common.get_version_str` for the raw tmux version string |
| 54 |
with its point-release suffix intact. The test suite now also passes |
| 55 |
against tmux 3.7a and 3.7b. |
| 56 |
|
| 57 |
### What's new |
| 58 |
|
| 59 |
#### New helper: `get_version_str()` (#699) |
| 60 |
|
| 61 |
{func}`libtmux.common.get_version_str` returns the running tmux version |
| 62 |
verbatim, keeping the point-release suffix (`"3.7a"`) that |
| 63 |
{func}`~libtmux.common.get_version` strips for numeric comparison. Reach |
| 64 |
for it to distinguish patch releases whose behavior differs -- for |
| 65 |
example telling tmux `3.7` from `3.7a`. |
| 66 |
|
| 67 |
### Fixes |
| 68 |
|
| 69 |
#### `break_pane()` keeps tmux's default window name on 3.7a/3.7b (#699) |
| 70 |
|
| 71 |
On tmux 3.7a/3.7b, breaking a pane into a new window without an explicit |
| 72 |
`window_name` left it named `libtmux` instead of tmux's own default |
| 73 |
(typically the running command). {meth}`~libtmux.Pane.break_pane` now |
| 74 |
keeps that natural name; passing `window_name` is unaffected. |
| 75 |
|
| 76 |
### Development |
| 77 |
|
| 78 |
#### tmux 3.7a/3.7b test compatibility (#698) |
| 79 |
|
| 80 |
libtmux's test suite now passes against tmux 3.7a and 3.7b, which CI also |
| 81 |
exercises. A window-name test had assumed the `:`/`.` rejection tmux |
| 82 |
introduced in 3.7, but tmux reverted it in 3.7a as "overly pernickety" — so |
| 83 |
the test now checks these names are accepted. |
| 84 |
|
| 85 |
## libtmux 0.60.0 (2026-06-28) |
| 86 |
|
| 87 |
libtmux 0.60.0 completes tmux 3.7 feature parity. Building on the 3.7 |
| 88 |
compatibility shipped in 0.59.0, it adds first-class floating panes via |
| 89 |
{meth}`~libtmux.Pane.new_pane` and {meth}`~libtmux.Window.new_pane`, |
| 90 |
types tmux 3.7's new server, session, window, and pane options, exposes |
| 91 |
the new pane format variables on {class}`~libtmux.Pane`, and wraps tmux |
| 92 |
3.7's new command flags. Every 3.7-only surface is version-gated, so |
| 93 |
tmux 3.2a-3.6 keep working unchanged. See {ref}`floating-panes` for a |
| 94 |
guide. |
| 95 |
|
| 96 |
### What's new |
| 97 |
|
| 98 |
#### Typed tmux 3.7 options (#694) |
| 99 |
|
| 100 |
The option dataclasses now type tmux 3.7's new options. On the server, |
| 101 |
`get-clipboard`; on the session, `focus-follows-mouse`, |
| 102 |
`message-format` and `prompt-command-cursor-style`; and on the window, |
| 103 |
the copy-mode line-number options, the tree-mode preview options and the |
| 104 |
window-pane status formats (of these, `tree-mode-preview-format` is also |
| 105 |
pane-scoped). The pane `remain-on-exit` option gained tmux 3.7's `key` |
| 106 |
value, and `pane-active-border-style` / `pane-border-style` (widened to |
| 107 |
pane scope in 3.7) now type on the pane too. |
| 108 |
|
| 109 |
#### tmux 3.7 pane format variables (#694) |
| 110 |
|
| 111 |
{class}`~libtmux.Pane` now exposes tmux 3.7's new pane format |
| 112 |
variables: the floating-pane geometry and flags (`pane_floating_flag`, |
| 113 |
`pane_x`, `pane_y`, `pane_z`, `pane_flags`, `pane_zoomed_flag`), the |
| 114 |
OSC 9;4 progress report (`pane_pb_progress`, `pane_pb_state`), |
| 115 |
`pane_pipe_pid`, and the `bracket_paste_flag` and |
| 116 |
`synchronized_output_flag` screen-mode flags. Each is version-gated, so |
| 117 |
the format template stays clean on tmux 3.2a–3.6. |
| 118 |
|
| 119 |
#### tmux 3.7 command flags (#694) |
| 120 |
|
| 121 |
New tmux 3.7 flags are exposed on existing wrappers: |
| 122 |
{meth}`~libtmux.Pane.capture_pane` gains `hyperlinks` (`-H`, hyperlink |
| 123 |
targets only), |
| 124 |
`line_numbers` (`-L`) and `line_flags` (`-F`); |
| 125 |
{meth}`~libtmux.Window.split` / {meth}`~libtmux.Pane.split` gain `empty` |
| 126 |
(`-E`, an empty pane) plus `style`/`active_border_style`/ |
| 127 |
`inactive_border_style` (`-s`/`-S`/`-R`), `message` (`-m`) and `keep` |
| 128 |
(`-k`, remain-on-exit); {meth}`~libtmux.Session.kill` gains `group` |
| 129 |
(`-g`, kill the session group); and {meth}`~libtmux.Pane.paste_buffer` |
| 130 |
gains `no_vis` (`-S`, paste raw bytes). On the server, |
| 131 |
{meth}`~libtmux.Server.command_prompt` gains `no_freeze` (`-C`, don't |
| 132 |
freeze panes), {meth}`~libtmux.Server.list_keys` gains `format_` |
| 133 |
(`-F`, custom output format), {meth}`~libtmux.Server.run_shell` |
| 134 |
accepts trailing `args` expanded as `#{1}`/`#{2}`, and |
| 135 |
{meth}`~libtmux.Server.refresh_client` gains `request_clipboard` |
| 136 |
(`-l`, request the terminal clipboard). Each warns and is ignored on |
| 137 |
tmux < 3.7. |
| 138 |
|
| 139 |
#### Floating panes (`new-pane`) (#694) |
| 140 |
|
| 141 |
tmux 3.7's flagship feature, floating panes, is now reachable through |
| 142 |
{meth}`Window.new_pane() <libtmux.Window.new_pane>` and |
| 143 |
{meth}`Pane.new_pane() <libtmux.Pane.new_pane>`. A |
| 144 |
floating pane sits above the tiled layout like a popup but behaves like |
| 145 |
a real pane. Pass `width`/`height` to size it and `x`/`y` to position |
| 146 |
it, alongside the usual `shell`, `start_directory`, `environment`, |
| 147 |
`zoom` and `empty`, plus `style`, `active_border_style`, |
| 148 |
`inactive_border_style`, `message` and `keep` (remain-on-exit). The |
| 149 |
returned {class}`~libtmux.Pane` reports |
| 150 |
`pane_floating_flag == "1"`. Requires tmux 3.7+. See {ref}`floating-panes` |
| 151 |
for a guide. |
| 152 |
|
| 153 |
## libtmux 0.59.0 (2026-06-27) |
| 154 |
|
| 155 |
libtmux 0.59.0 adds support for tmux 3.7. tmux 3.7 shipped an upstream |
| 156 |
regression that crashed the server on `break-pane`; |
| 157 |
{meth}`~libtmux.Pane.break_pane` now works around it so breaking and |
| 158 |
rejoining panes works again, and tmux 3.7 joins the tested version |
| 159 |
matrix alongside 3.2a-3.6. |
| 160 |
|
| 161 |
### Fixes |
| 162 |
|
| 163 |
#### `break-pane` no longer crashes the tmux 3.7 server (#693) |
| 164 |
|
| 165 |
tmux 3.7 shipped a regression where `break-pane` aborts the server with |
| 166 |
a NULL-pointer dereference whenever a pane is broken out of a window |
| 167 |
without an explicit name (fixed upstream after the 3.7 release). |
| 168 |
{meth}`~libtmux.Pane.break_pane` now works around this on tmux 3.7 by |
| 169 |
always supplying a name and applying the requested one afterwards, so |
| 170 |
breaking a pane into a new window — and joining it back with |
| 171 |
{meth}`~libtmux.Pane.join` — work again. Older and post-3.7 tmux are |
| 172 |
unaffected. |
| 173 |
|
| 174 |
## libtmux 0.58.1 (2026-06-16) |
| 175 |
|
| 176 |
libtmux 0.58.1 restores compatibility with pytest 9.1. The bundled |
| 177 |
pytest plugin no longer aborts at import time, so projects that rely on |
| 178 |
libtmux's fixtures can move to the latest pytest without their test |
| 179 |
suite failing before collection. |
| 180 |
|
| 181 |
### Fixes |
| 182 |
|
| 183 |
#### pytest 9.1 compatibility for the pytest plugin (#687) |
| 184 |
|
| 185 |
libtmux's pytest plugin (see {ref}`pytest_plugin`) now imports cleanly |
| 186 |
under pytest 9.1, which began rejecting marks applied to fixture |
| 187 |
functions. Projects that use libtmux's fixtures can upgrade to pytest |
| 188 |
9.1+ without the plugin aborting before test collection. |
| 189 |
|
| 190 |
## libtmux 0.58.0 (2026-05-23) |
| 191 |
|
| 192 |
libtmux 0.58.0 fixes subprocess output decoding on non-UTF-8 locales. |
| 193 |
Both {class}`~libtmux.common.tmux_cmd` and |
| 194 |
{class}`~libtmux._internal.control_mode.ControlMode` now enforce UTF-8 |
| 195 |
when reading tmux output, matching tmux's own encoding contract. |
| 196 |
|
| 197 |
### Fixes |
| 198 |
|
| 199 |
#### Subprocess encoding on non-UTF-8 locales (#679) |
| 200 |
|
| 201 |
{class}`~libtmux.common.tmux_cmd` and {class}`~libtmux._internal.control_mode.ControlMode` |
| 202 |
now pass `encoding="utf-8"` to `subprocess.Popen`, ensuring tmux output |
| 203 |
is decoded correctly regardless of the system locale. Previously, on |
| 204 |
non-UTF-8 locales, the {data}`~libtmux.formats.FORMAT_SEPARATOR` character |
| 205 |
(U+241E) was corrupted during decoding, causing list accessors |
| 206 |
({attr}`~libtmux.Server.sessions`, etc.) to return empty results. |
| 207 |
|
| 208 |
## libtmux 0.57.1 (2026-05-18) |
| 209 |
|
| 210 |
Restores the "lenient-by-default" behavior for |
| 211 |
{attr}`~libtmux.Server.sessions` and {attr}`~libtmux.Server.clients` that |
| 212 |
was changed in 0.57.0. |
| 213 |
|
| 214 |
### Behavioral Changes |
| 215 |
|
| 216 |
#### Lenient `Server.sessions` and `Server.clients` accessors |
| 217 |
|
| 218 |
{attr}`~libtmux.Server.sessions` and {attr}`~libtmux.Server.clients` once |
| 219 |
again return an empty {class}`~libtmux._internal.query_list.QueryList` |
| 220 |
when tmux fails for any reason (permission errors, subprocess crashes, |
| 221 |
etc.). |
| 222 |
|
| 223 |
This reverts a change in 0.57.0 that made these accessors raise |
| 224 |
{exc}`~libtmux.exc.LibTmuxException`. The restored behavior matches the |
| 225 |
contract {attr}`~libtmux.Server.sessions` has followed since 0.17.0. |
| 226 |
|
| 227 |
- **Upgrade path:** Code that added ``try/except LibTmuxException`` blocks around |
| 228 |
these accessors for 0.57.0 can now remove them. |
| 229 |
- **Connectivity checks:** If you need to distinguish between "no results" and |
| 230 |
"tmux is unreachable", use the explicit {meth}`~libtmux.Server.is_alive` or |
| 231 |
{meth}`~libtmux.Server.raise_if_dead` methods. |
| 232 |
|
| 233 |
#### Stricter `search_*` methods |
| 234 |
|
| 235 |
The newer {meth}`~libtmux.Server.search_sessions`, |
| 236 |
{meth}`~libtmux.Server.search_windows`, and |
| 237 |
{meth}`~libtmux.Server.search_panes` continue to raise on tmux errors. |
| 238 |
Since these methods take a caller-supplied filter, a tmux failure is |
| 239 |
considered a meaningful error signal that should not be swallowed. |
| 240 |
|
| 241 |
## libtmux 0.57.0 (2026-05-17) |
| 242 |
|
| 243 |
libtmux 0.57.0 broadens tmux support around attached clients, tmux-native |
| 244 |
filtering, and format-token fields. {class}`~libtmux.Client` gives callers a |
| 245 |
typed object for attached terminals, `search_*()` methods let tmux return only |
| 246 |
matching sessions, windows, and panes, and more tmux format tokens are exposed |
| 247 |
as typed attributes. {exc}`~libtmux.exc.LibTmuxException` now records which |
| 248 |
tmux subcommand failed, making command errors easier to handle downstream. |
| 249 |
|
| 250 |
### Breaking changes |
| 251 |
|
| 252 |
#### `LibTmuxException` string form gains a subcommand prefix (#672) |
| 253 |
|
| 254 |
When {exc}`~libtmux.exc.LibTmuxException` is raised from a libtmux method, |
| 255 |
``str(exc)`` now begins with the originating tmux subcommand name followed |
| 256 |
by ``": "``. For example, an error from |
| 257 |
{meth}`~libtmux.Session.last_window` used to render as ``"can't find |
| 258 |
window"`` and now renders as ``"last-window: can't find window"``. |
| 259 |
|
| 260 |
``exc.args[0]`` still carries the original tmux error text, and the new |
| 261 |
{attr}`~libtmux.exc.LibTmuxException.subcommand` attribute exposes |
| 262 |
the tmux subcommand name as a separate field. |
| 263 |
{func}`~libtmux.common.raise_if_stderr` is the shared helper that |
| 264 |
populates both. |
| 265 |
|
| 266 |
The error-payload *type* changed: ``exc.args[0]`` is now ``str``, |
| 267 |
joined with ``"\n"`` when tmux emitted multiple stderr lines. |
| 268 |
Previously it was ``list[str]``. |
| 269 |
|
| 270 |
This is a serialization-format change: code that pattern-matches on |
| 271 |
``str(exc)`` exactly, anchors a regex with ``^`` against the old |
| 272 |
shape, or indexes ``exc.args[0]`` element-by-element will no longer |
| 273 |
match. |
| 274 |
|
| 275 |
```python |
| 276 |
# Before |
| 277 |
try: |
| 278 |
session.last_window() |
| 279 |
except LibTmuxException as exc: |
| 280 |
if str(exc) == "can't find window": |
| 281 |
... |
| 282 |
|
| 283 |
# After — dispatch on the typed attribute |
| 284 |
try: |
| 285 |
session.last_window() |
| 286 |
except LibTmuxException as exc: |
| 287 |
if exc.subcommand == "last-window": |
| 288 |
... |
| 289 |
|
| 290 |
# Or — match against the original tmux error text without the prefix |
| 291 |
try: |
| 292 |
session.last_window() |
| 293 |
except LibTmuxException as exc: |
| 294 |
if exc.args and exc.args[0] == "can't find window": |
| 295 |
... |
| 296 |
``` |
| 297 |
|
| 298 |
Substring matches (``"can't find" in str(exc)``) and unanchored |
| 299 |
``re.search`` patterns continue to work unchanged. |
| 300 |
|
| 301 |
#### `Server.sessions`, `Server.clients`, and `Server.search_sessions` raise on tmux errors (#672) |
| 302 |
|
| 303 |
Previously, a tmux command failure under |
| 304 |
{attr}`~libtmux.Server.sessions`, {attr}`~libtmux.Server.clients`, or |
| 305 |
{meth}`~libtmux.Server.search_sessions` could return an empty |
| 306 |
{class}`~libtmux._internal.query_list.QueryList` indistinguishable |
| 307 |
from "no sessions / no clients attached" or "filter matched nothing". |
| 308 |
Those accessors now let {exc}`~libtmux.exc.LibTmuxException` propagate |
| 309 |
for real tmux failures. |
| 310 |
|
| 311 |
Genuine empty results — a server with no attached clients, or a |
| 312 |
filter that matched zero sessions — still return an empty |
| 313 |
``QueryList``. A missing or not-yet-started tmux server is also still |
| 314 |
treated as an empty result, preserving the historic contract that a fresh |
| 315 |
{class}`~libtmux.Server` can be safely introspected before its daemon is |
| 316 |
up. Other tmux errors, such as socket permission failures or unsupported |
| 317 |
flags, now surface. |
| 318 |
|
| 319 |
```python |
| 320 |
# Before — silent on tmux failure |
| 321 |
if not server.clients: |
| 322 |
log("no clients") # also runs when tmux itself crashed |
| 323 |
|
| 324 |
# After — distinguish the two cases |
| 325 |
try: |
| 326 |
clients = server.clients |
| 327 |
except LibTmuxException as exc: |
| 328 |
log(f"list-clients failed: {exc}") |
| 329 |
else: |
| 330 |
if not clients: |
| 331 |
log("no clients") |
| 332 |
``` |
| 333 |
|
| 334 |
### What's new |
| 335 |
|
| 336 |
#### `Client` object and `Server.clients` accessor (#672) |
| 337 |
|
| 338 |
New {class}`~libtmux.Client` and {attr}`~libtmux.Server.clients` support tmux's |
| 339 |
attached-client model directly. Reads like ``client.client_readonly`` and |
| 340 |
``client.client_session`` work on the client object without dropping down to |
| 341 |
{meth}`~libtmux.Server.cmd`. |
| 342 |
|
| 343 |
Note that ``client.session_id`` / ``client.window_id`` / ``client.pane_id`` |
| 344 |
reflect the client's attached view when the object was read — |
| 345 |
{meth}`~libtmux.Client.refresh` re-reads them after the client switches focus. |
| 346 |
``client.client_name`` is the client's stable identifier. |
| 347 |
|
| 348 |
For typed access to the live attachment, use |
| 349 |
{attr}`~libtmux.Client.attached_session`, |
| 350 |
{attr}`~libtmux.Client.attached_window`, and |
| 351 |
{attr}`~libtmux.Client.attached_pane`. Each property re-reads the |
| 352 |
client from ``list-clients`` before resolving; if tmux no longer |
| 353 |
reports that ``client_name``, such as after the client detaches, the |
| 354 |
property returns ``None``. Otherwise, the returned |
| 355 |
{class}`~libtmux.Session` / {class}`~libtmux.Window` / |
| 356 |
{class}`~libtmux.Pane` reflects where the client is attached *now*, |
| 357 |
not where it was when the {class}`~libtmux.Client` was constructed. |
| 358 |
Direct {meth}`~libtmux.Client.refresh` and |
| 359 |
{meth}`~libtmux.Client.from_client_name` calls still surface missing |
| 360 |
client lookup errors. |
| 361 |
|
| 362 |
{attr}`~libtmux.Client.attached_pane` follows the attached session's current |
| 363 |
window. That can differ from the per-client active pane set by |
| 364 |
``select-pane -P``; see {attr}`~libtmux.Client.attached_pane` for the exact |
| 365 |
behavior. |
| 366 |
|
| 367 |
#### `Server.display_message` and `Window.display_message` (#672) |
| 368 |
|
| 369 |
{meth}`~libtmux.Server.display_message` and |
| 370 |
{meth}`~libtmux.Window.display_message` join the existing |
| 371 |
{meth}`~libtmux.Pane.display_message`. Server reads like |
| 372 |
``#{version}`` and ``#{socket_path}`` work without a pane handle; |
| 373 |
window reads (``#{window_zoomed_flag}``, ``#{window_active_clients_list}``) |
| 374 |
auto-bind to the window's id. |
| 375 |
|
| 376 |
All three wrappers surface tmux stderr via :func:`warnings.warn` |
| 377 |
rather than dropping it silently. tmux uses stderr for both genuine |
| 378 |
errors and informational messages on some versions, so the wrappers |
| 379 |
warn rather than raise; callers that want to escalate can wrap the |
| 380 |
call in :func:`warnings.catch_warnings` with |
| 381 |
``filterwarnings("error")``. See {doc}`migration` for the escalation |
| 382 |
pattern. |
| 383 |
|
| 384 |
#### tmux-native filtering with `search_*()` (#672) |
| 385 |
|
| 386 |
{meth}`~libtmux.Server.search_panes`, |
| 387 |
{meth}`~libtmux.Server.search_windows`, |
| 388 |
{meth}`~libtmux.Server.search_sessions`, and the Session/Window |
| 389 |
analogues take a ``filter=`` kwarg routed to tmux's ``-f`` flag. tmux |
| 390 |
evaluates the expression and returns only matching objects. |
| 391 |
|
| 392 |
Caveat: tmux silently expands a malformed filter expression to empty, which |
| 393 |
it treats as false — a typo looks identical to "no matches". Verify filter |
| 394 |
syntax against the FORMATS section of ``tmux(1)``. |
| 395 |
|
| 396 |
#### `Pane.send_keys(cmd=None, …)` flag-only invocation (#672) |
| 397 |
|
| 398 |
{meth}`~libtmux.Pane.send_keys` accepts ``cmd=None`` together with |
| 399 |
``reset=True`` or ``repeat=N`` to invoke tmux's flag-only |
| 400 |
``send-keys -R`` / ``send-keys -N <n>`` form without any trailing |
| 401 |
key argument. |
| 402 |
|
| 403 |
#### `Server.list_buffers(format_string=, filter=)` (#672) |
| 404 |
|
| 405 |
{meth}`~libtmux.Server.list_buffers` gains ``format_string`` (``-F``) |
| 406 |
and ``filter`` (``-f``) kwargs. Callers can ask tmux to return selected |
| 407 |
fields (e.g. ``"#{buffer_name}"``) or only buffers matching an expression — |
| 408 |
same bad-filter caveat as the ``search_*`` methods. |
| 409 |
|
| 410 |
#### `Server.run_shell(cwd=, show_stderr=)` (#672) |
| 411 |
|
| 412 |
{meth}`~libtmux.Server.run_shell` gains ``cwd`` (``-c``) to set the |
| 413 |
shell command's working directory and ``show_stderr`` (``-E``) to |
| 414 |
merge the command's stderr into the captured output. Both kwargs are |
| 415 |
version-gated; older tmux warns and ignores the flag instead of |
| 416 |
erroring. |
| 417 |
|
| 418 |
#### `Pane.capture_pane(pending=True)` (#672) |
| 419 |
|
| 420 |
{meth}`~libtmux.Pane.capture_pane` gains a ``pending`` kwarg that |
| 421 |
returns bytes tmux has read from the pane but not yet committed to |
| 422 |
the terminal — useful for diagnosing programs whose output stalls |
| 423 |
mid-sequence. |
| 424 |
|
| 425 |
#### More format-token fields on tmux objects (#672) |
| 426 |
|
| 427 |
libtmux now asks each ``list-*`` subcommand for the format tokens that make |
| 428 |
sense for that object and tmux version. Tokens the running tmux does not |
| 429 |
support stay ``None`` instead of making the listing fail. |
| 430 |
|
| 431 |
{class}`~libtmux.Pane`, {class}`~libtmux.Window`, |
| 432 |
{class}`~libtmux.Session`, and {class}`~libtmux.Client` expose more typed |
| 433 |
attributes for pane state (``pane_dead``, ``pane_in_mode``, ``pane_marked``, |
| 434 |
``pane_synchronized``, ``pane_path``, ``pane_pipe``), window state |
| 435 |
(``window_zoomed_flag``, ``window_silence_flag``, ``window_flags``), session |
| 436 |
state (``session_marked``), and client state (``client_session``, |
| 437 |
``client_readonly``, ``client_termtype``). Some fields describe the active |
| 438 |
child object tmux reports with the row: for example, ``session.pane_id`` is |
| 439 |
the active pane in the session's current window, not a separate "session |
| 440 |
pane." See {ref}`format-tokens` for details. |
| 441 |
|
| 442 |
### Fixes |
| 443 |
|
| 444 |
- {meth}`~libtmux.Pane.reset` now clears pane scrollback. In 0.56.0 |
| 445 |
the history clear silently no-op'd, leaving the scrollback intact |
| 446 |
(#650). |
| 447 |
|
| 448 |
### Documentation |
| 449 |
|
| 450 |
- New API page: {doc}`api/libtmux.client`. |
| 451 |
- New {ref}`format-tokens` topic explains why some fields describe an active |
| 452 |
child object, such as ``session.pane_id`` reflecting the active pane in the |
| 453 |
session's current window (#672). |
| 454 |
|
| 455 |
## libtmux 0.56.0 (2026-05-10) |
| 456 |
|
| 457 |
libtmux 0.56.0 is the tmux command-parity release. It adds more than |
| 458 |
50 commands across {class}`~libtmux.Server`, {class}`~libtmux.Session`, |
| 459 |
{class}`~libtmux.Window`, and {class}`~libtmux.Pane`, filling in many |
| 460 |
commands that previously required raw {meth}`~libtmux.Server.cmd` calls. |
| 461 |
It also adds attached-client test support so interactive tmux commands can be |
| 462 |
covered in headless test suites. |
| 463 |
|
| 464 |
### What's new |
| 465 |
|
| 466 |
#### Interactive tmux commands are now scriptable (#653) |
| 467 |
|
| 468 |
libtmux now exposes Python commands for tmux that normally depend on |
| 469 |
an attached client: {meth}`~libtmux.Pane.display_popup`, |
| 470 |
{meth}`~libtmux.Server.display_menu`, |
| 471 |
{meth}`~libtmux.Server.command_prompt`, |
| 472 |
{meth}`~libtmux.Server.confirm_before`, |
| 473 |
{meth}`~libtmux.Session.detach_client`, |
| 474 |
{meth}`~libtmux.Server.detach_client`, |
| 475 |
{meth}`~libtmux.Server.detach_all_clients`, |
| 476 |
{meth}`~libtmux.Pane.display_panes`, |
| 477 |
{meth}`~libtmux.Pane.choose_buffer`, |
| 478 |
{meth}`~libtmux.Pane.choose_client`, and |
| 479 |
{meth}`~libtmux.Pane.choose_tree`. |
| 480 |
|
| 481 |
The `detach-client` API is split by the same scopes tmux actually honors: |
| 482 |
{meth}`~libtmux.Session.detach_client` maps to |
| 483 |
`tmux detach-client -s <session_id>`, |
| 484 |
{meth}`~libtmux.Server.detach_client` maps to |
| 485 |
`tmux detach-client [-t <client>]`, and |
| 486 |
{meth}`~libtmux.Server.detach_all_clients` maps to |
| 487 |
`tmux detach-client -a [-t <keep>]`. This keeps each method to one tmux flag |
| 488 |
group and one subprocess call. |
| 489 |
|
| 490 |
#### tmux buffer I/O has first-class support (#653) |
| 491 |
|
| 492 |
Named tmux buffers can now be used from libtmux without hand-built commands. |
| 493 |
{meth}`~libtmux.Server.set_buffer`, |
| 494 |
{meth}`~libtmux.Server.show_buffer`, |
| 495 |
{meth}`~libtmux.Server.delete_buffer`, |
| 496 |
{meth}`~libtmux.Server.save_buffer`, |
| 497 |
{meth}`~libtmux.Server.load_buffer`, |
| 498 |
{meth}`~libtmux.Server.list_buffers`, and |
| 499 |
{meth}`~libtmux.Pane.paste_buffer` cover the common clipboard, capture, and |
| 500 |
inter-process handoff workflows. |
| 501 |
|
| 502 |
#### Server commands cover key bindings, clients, shell execution, and access (#653) |
| 503 |
|
| 504 |
{class}`~libtmux.Server` gains support for key-binding inspection and mutation |
| 505 |
({meth}`~libtmux.Server.bind_key`, |
| 506 |
{meth}`~libtmux.Server.unbind_key`, |
| 507 |
{meth}`~libtmux.Server.list_keys`, |
| 508 |
{meth}`~libtmux.Server.list_commands`), shell/config execution |
| 509 |
({meth}`~libtmux.Server.run_shell`, |
| 510 |
{meth}`~libtmux.Server.if_shell`, |
| 511 |
{meth}`~libtmux.Server.source_file`), and client/server control |
| 512 |
({meth}`~libtmux.Server.list_clients`, |
| 513 |
{meth}`~libtmux.Server.start_server`, |
| 514 |
{meth}`~libtmux.Server.lock_server`, |
| 515 |
{meth}`~libtmux.Server.lock_client`, |
| 516 |
{meth}`~libtmux.Server.refresh_client`, |
| 517 |
{meth}`~libtmux.Server.suspend_client`, |
| 518 |
{meth}`~libtmux.Server.server_access`, |
| 519 |
{meth}`~libtmux.Server.show_messages`, |
| 520 |
{meth}`~libtmux.Server.show_prompt_history`, |
| 521 |
{meth}`~libtmux.Server.clear_prompt_history`). {class}`~libtmux.Session` |
| 522 |
also gains {meth}`~libtmux.Session.lock_session`, and |
| 523 |
{class}`~libtmux.Pane` gains {meth}`~libtmux.Pane.send_prefix`. |
| 524 |
|
| 525 |
#### Windows and panes can be rearranged through the object API (#653) |
| 526 |
|
| 527 |
Window-level operations now include {meth}`~libtmux.Window.swap`, |
| 528 |
{meth}`~libtmux.Window.link`, {meth}`~libtmux.Window.unlink`, |
| 529 |
{meth}`~libtmux.Window.respawn`, {meth}`~libtmux.Window.last_pane`, |
| 530 |
{meth}`~libtmux.Window.next_layout`, |
| 531 |
{meth}`~libtmux.Window.previous_layout`, and |
| 532 |
{meth}`~libtmux.Window.rotate`. Pane-level operations now include |
| 533 |
{meth}`~libtmux.Pane.swap`, {meth}`~libtmux.Pane.join`, |
| 534 |
{meth}`~libtmux.Pane.break_pane`, {meth}`~libtmux.Pane.move`, |
| 535 |
{meth}`~libtmux.Pane.pipe`, {meth}`~libtmux.Pane.clear_history`, |
| 536 |
{meth}`~libtmux.Pane.respawn`, {meth}`~libtmux.Pane.copy_mode`, |
| 537 |
{meth}`~libtmux.Pane.clock_mode`, |
| 538 |
{meth}`~libtmux.Pane.customize_mode`, and |
| 539 |
{meth}`~libtmux.Pane.find_window`. |
| 540 |
|
| 541 |
Navigation helpers fill in the surrounding topology: |
| 542 |
{meth}`~libtmux.Server.wait_for`, |
| 543 |
{meth}`~libtmux.Session.last_window`, |
| 544 |
{meth}`~libtmux.Session.next_window`, and |
| 545 |
{meth}`~libtmux.Session.previous_window`. |
| 546 |
|
| 547 |
#### Improvements (#653) |
| 548 |
|
| 549 |
Several established methods now surface tmux flags that were previously only |
| 550 |
available by dropping to raw commands. Highlights include |
| 551 |
{meth}`~libtmux.Pane.send_keys` (`literal`, `hex_keys`, `key_name`, |
| 552 |
`expand_formats`, `target_client`), {meth}`~libtmux.Pane.split` |
| 553 |
(`percentage`), {meth}`~libtmux.Pane.capture_pane` |
| 554 |
(`alternate_screen`, `quiet`, buffer output), and |
| 555 |
{meth}`~libtmux.Pane.display_message` (formatting, delay, notify, verbose, and |
| 556 |
style/update controls). |
| 557 |
|
| 558 |
Window/session/server additions include extra flags on |
| 559 |
{meth}`~libtmux.Window.move_window`, |
| 560 |
{meth}`~libtmux.Window.select_layout`, |
| 561 |
{meth}`~libtmux.Server.new_session`, |
| 562 |
{meth}`~libtmux.Session.new_window`, |
| 563 |
{meth}`~libtmux.Server.set_environment`, and |
| 564 |
{meth}`~libtmux.Server.show_options`. |
| 565 |
|
| 566 |
#### Attached-client tests are available through `control_mode` (#653) |
| 567 |
|
| 568 |
The {fixture}`control_mode` fixture starts a real `tmux -C` client attached to |
| 569 |
the test session. Downstream test suites can exercise commands such as |
| 570 |
{meth}`~libtmux.Pane.display_popup`, |
| 571 |
{meth}`~libtmux.Session.detach_client`, |
| 572 |
{meth}`~libtmux.Server.command_prompt`, and |
| 573 |
{meth}`~libtmux.Server.confirm_before` without requiring an interactive TTY. |
| 574 |
The fixture is exported by {mod}`libtmux.pytest_plugin`. |
| 575 |
|
| 576 |
### Fixes |
| 577 |
|
| 578 |
#### `Window.move_window()` refreshes moved windows (#653) |
| 579 |
|
| 580 |
{meth}`~libtmux.Window.move_window` now refreshes the moved |
| 581 |
{class}`~libtmux.Window` after tmux completes the move. Code that reads |
| 582 |
attributes after a relative or cross-session move no longer needs a manual |
| 583 |
{meth}`~libtmux.Window.refresh` call to avoid stale state. |
| 584 |
|
| 585 |
### Documentation |
| 586 |
|
| 587 |
#### gp-sphinx docs stack moves to the Vite-backed theme path (#666) |
| 588 |
|
| 589 |
The documentation stack now uses `gp-furo-theme`, a Tailwind v4 respin of Furo, |
| 590 |
with `sphinx-vite-builder` owning theme asset builds. This picks up the shared |
| 591 |
gp-sphinx documentation surface used by sibling projects. |
| 592 |
|
| 593 |
### Tests |
| 594 |
|
| 595 |
#### "No server" tests no longer depend on hardcoded sockets (#665) |
| 596 |
|
| 597 |
`test_no_server_*` and `test_raise_if_dead_no_server_raises` now use the |
| 598 |
{fixture}`server` fixture for unique socket names and finalizer cleanup. The |
| 599 |
tests no longer fail just because a stale tmux daemon survived at one of the |
| 600 |
old hardcoded socket paths. Fixes #664. |
| 601 |
|
| 602 |
### Development |
| 603 |
|
| 604 |
#### tmux 3.7 is within the known-version range (#653) |
| 605 |
|
| 606 |
{data}`~libtmux.common.TMUX_MAX_VERSION` is now `"3.7"`, enabling support and |
| 607 |
tests for version-gated tmux 3.7 flags such as |
| 608 |
{meth}`~libtmux.Server.command_prompt` `bspace_exit` and |
| 609 |
{meth}`~libtmux.Server.show_messages` `terminals` / `jobs`. Installations on |
| 610 |
tmux 3.6 and earlier keep their existing behavior. |
| 611 |
|
| 612 |
## libtmux 0.55.1 (2026-04-19) |
| 613 |
|
| 614 |
libtmux 0.55.1 is a documentation and test-isolation release. It makes the |
| 615 |
pytest plugin's server cleanup more robust, documents fixtures as first-class |
| 616 |
API objects, and brings the docs site onto the shared gp-sphinx visual stack. |
| 617 |
|
| 618 |
### What's new |
| 619 |
|
| 620 |
#### pytest fixtures have generated API reference pages (#656) |
| 621 |
|
| 622 |
The docs now render pytest fixtures with autodoc-style directives for |
| 623 |
individual fixtures, bulk fixture listings, and a fixture index. Fixture pages |
| 624 |
show scope, kind, factory metadata, dependencies, generated usage examples, and |
| 625 |
responsive badge styling through the gp-sphinx fixture extension. |
| 626 |
|
| 627 |
### Fixes |
| 628 |
|
| 629 |
#### pytest plugin server cleanup removes stale socket files (#661) |
| 630 |
|
| 631 |
The {fixture}`server` and {fixture}`TestServer` finalizers now unlink tmux |
| 632 |
socket files under `/tmp/tmux-<uid>/` after killing the server. This prevents |
| 633 |
long-lived development machines from accumulating stale `libtmux_test*` |
| 634 |
sockets that can break later test runs. Fixes #660. |
| 635 |
|
| 636 |
#### `session_params` fixture docs report the right return type (#656) |
| 637 |
|
| 638 |
The {fixture}`session_params` fixture docstring now describes the value pytest |
| 639 |
actually injects. |
| 640 |
|
| 641 |
### Documentation |
| 642 |
|
| 643 |
#### API docs adopt the gp-sphinx presentation stack (#658, #659) |
| 644 |
|
| 645 |
API pages pick up gp-sphinx card layouts, badges, MyST-aware cross references, |
| 646 |
argparse-label fixes, IBM Plex typography, and the 0.0.1a8 docs-stack bump. |
| 647 |
|
| 648 |
### Development |
| 649 |
|
| 650 |
#### `types-docutils` is available for type checking (#656) |
| 651 |
|
| 652 |
The dev dependency set now includes `types-docutils`, keeping the fixture-docs |
| 653 |
extension visible to mypy. |
| 654 |
|
| 655 |
## libtmux 0.55.0 (2026-03-07) |
| 656 |
|
| 657 |
libtmux 0.55.0 improves pane naming, custom tmux binary support, and command |
| 658 |
diagnostics. The release is useful for projects that run against alternate tmux |
| 659 |
builds or need clearer subprocess logging. |
| 660 |
|
| 661 |
### What's new |
| 662 |
|
| 663 |
#### Pane titles can be set and read through short aliases (#636) |
| 664 |
|
| 665 |
{meth}`~libtmux.Pane.set_title` wraps `select-pane -T`, and |
| 666 |
{attr}`~libtmux.Pane.title` is a short alias for |
| 667 |
{attr}`~libtmux.Pane.pane_title`. |
| 668 |
|
| 669 |
```python |
| 670 |
pane.set_title("my-worker") |
| 671 |
pane.pane_title |
| 672 |
# 'my-worker' |
| 673 |
pane.title |
| 674 |
# 'my-worker' |
| 675 |
``` |
| 676 |
|
| 677 |
The `pane_title` tmux format variable is now included in libtmux format |
| 678 |
queries. |
| 679 |
|
| 680 |
#### `Server` can use an explicit tmux binary (#636) |
| 681 |
|
| 682 |
{class}`~libtmux.Server` accepts `tmux_bin` for alternate binaries such as |
| 683 |
wemux, byobu, or locally built tmux checkouts. |
| 684 |
|
| 685 |
```python |
| 686 |
server = Server(socket_name="myserver", tmux_bin="/usr/local/bin/tmux-next") |
| 687 |
``` |
| 688 |
|
| 689 |
The binary path flows through {meth}`~libtmux.Server.cmd`, |
| 690 |
{meth}`~libtmux.Server.raise_if_dead`, {func}`~libtmux.neo.fetch_objs`, |
| 691 |
version checks such as {func}`~libtmux.common.has_version` and |
| 692 |
{func}`~libtmux.common.has_gte_version`, and option/hook scope guards. Child |
| 693 |
objects inherit it automatically. When `tmux_bin` is omitted, command execution |
| 694 |
falls back to `shutil.which("tmux")`. |
| 695 |
|
| 696 |
#### tmux commands log before execution (#636) |
| 697 |
|
| 698 |
{func}`~libtmux.common.tmux_cmd` logs the full command line at `DEBUG` before |
| 699 |
running it, complementing the existing post-execution output logging and giving |
| 700 |
operators a better diagnostic trail. |
| 701 |
|
| 702 |
### Fixes |
| 703 |
|
| 704 |
#### Invalid `tmux_bin` paths raise `TmuxCommandNotFound` (#636) |
| 705 |
|
| 706 |
Passing a missing binary path now raises |
| 707 |
{exc}`~libtmux.exc.TmuxCommandNotFound` consistently in both |
| 708 |
{func}`~libtmux.common.tmux_cmd` and |
| 709 |
{meth}`~libtmux.Server.raise_if_dead`, instead of leaking a raw |
| 710 |
`FileNotFoundError`. |
| 711 |
|
| 712 |
## libtmux 0.54.0 (2026-03-07) |
| 713 |
|
| 714 |
libtmux 0.54.0 adds structured lifecycle logging and tightens failure handling |
| 715 |
for important object operations. Applications can now filter logs by stable |
| 716 |
tmux context fields instead of parsing message text. |
| 717 |
|
| 718 |
### What's new |
| 719 |
|
| 720 |
#### Lifecycle operations emit structured log records (#637) |
| 721 |
|
| 722 |
Create, kill, rename, split, and command-execution paths now log with stable |
| 723 |
`extra` keys such as `tmux_subcommand`, `tmux_session`, `tmux_window`, |
| 724 |
`tmux_pane`, and `tmux_target`. The library also installs a `NullHandler`, |
| 725 |
uses lazy `%s` logging, guards heavier debug data, and removes ad-hoc stack |
| 726 |
printing. |
| 727 |
|
| 728 |
### Fixes |
| 729 |
|
| 730 |
#### `Window.rename_window()` now propagates tmux failures (#637) |
| 731 |
|
| 732 |
{meth}`~libtmux.Window.rename_window` no longer catches and logs every |
| 733 |
exception. tmux errors now surface to callers like the rest of the command API. |
| 734 |
|
| 735 |
#### `Server.kill()` handles expected dead-server states (#637) |
| 736 |
|
| 737 |
{meth}`~libtmux.Server.kill` now captures stderr, ignores expected "no server |
| 738 |
running" style states, and raises for unexpected tmux errors. |
| 739 |
|
| 740 |
#### `Server.new_session(kill_session=True)` checks failed cleanup (#637) |
| 741 |
|
| 742 |
If the pre-create `kill-session` step fails, {meth}`~libtmux.Server.new_session` |
| 743 |
now raises {exc}`~libtmux.exc.LibTmuxException` instead of continuing as though |
| 744 |
the old session had been removed. |
| 745 |
|
| 746 |
## libtmux 0.53.1 (2026-02-18) |
| 747 |
|
| 748 |
libtmux 0.53.1 fixes a session-creation race and moves the developer command |
| 749 |
surface from Make to Just. |
| 750 |
|
| 751 |
### Fixes |
| 752 |
|
| 753 |
#### `Server.new_session()` no longer races its own initialization query (#625) |
| 754 |
|
| 755 |
{meth}`~libtmux.Server.new_session` now parses all required session fields from |
| 756 |
the `tmux new-session -P` output instead of creating the session and then |
| 757 |
immediately querying `list-sessions`. That removes a race that could raise |
| 758 |
{exc}`~libtmux.exc.TmuxObjectDoesNotExist` in PyInstaller, Python 3.13+, Docker, |
| 759 |
and other slower-startup environments. Fixes #624. Thanks @neubig. |
| 760 |
|
| 761 |
### Documentation |
| 762 |
|
| 763 |
#### Documentation publishing uses GitHub OIDC |
| 764 |
|
| 765 |
The docs deployment path moved to GitHub OIDC and AWS CLI credentials. |
| 766 |
|
| 767 |
### Development |
| 768 |
|
| 769 |
#### Developer tasks use `just` (#617) |
| 770 |
|
| 771 |
The project moved from `Makefile` to `justfile`, and docs now reference the |
| 772 |
`just` command names. |
| 773 |
|
| 774 |
## libtmux 0.53.0 (2025-12-14) |
| 775 |
|
| 776 |
libtmux 0.53.0 narrows the semantics of interactive attachment and fixes a |
| 777 |
shutdown edge case around attached sessions. |
| 778 |
|
| 779 |
### Breaking changes |
| 780 |
|
| 781 |
#### `Session.attach()` no longer refreshes after returning (#616) |
| 782 |
|
| 783 |
{meth}`~libtmux.Session.attach` no longer calls |
| 784 |
{meth}`~libtmux.neo.Obj.refresh` after `attach-session` returns. The tmux command |
| 785 |
is interactive and blocking, so arbitrary state may change while the user is |
| 786 |
attached. Code that needs fresh state after attaching should call |
| 787 |
{meth}`~libtmux.Session.refresh` explicitly. |
| 788 |
|
| 789 |
### Fixes |
| 790 |
|
| 791 |
#### Killing the attached session no longer breaks `Session.attach()` (#616) |
| 792 |
|
| 793 |
{meth}`~libtmux.Session.attach` no longer raises |
| 794 |
{exc}`~libtmux.exc.TmuxObjectDoesNotExist` when the attached session is killed |
| 795 |
before the user detaches. |
| 796 |
|
| 797 |
## libtmux 0.52.1 (2025-12-07) |
| 798 |
|
| 799 |
libtmux 0.52.1 hardens package publishing. |
| 800 |
|
| 801 |
### Development |
| 802 |
|
| 803 |
#### PyPI publishing uses Trusted Publisher (#615) |
| 804 |
|
| 805 |
PyPI releases now use OIDC-based Trusted Publisher instead of API tokens, |
| 806 |
enabling attestations and reducing long-lived secret exposure. |
| 807 |
|
| 808 |
## libtmux 0.52.0 (2025-12-07) |
| 809 |
|
| 810 |
libtmux 0.52.0 expands pane capture so applications can preserve more of the |
| 811 |
terminal's rendered output. |
| 812 |
|
| 813 |
### What's new |
| 814 |
|
| 815 |
#### `Pane.capture_pane()` exposes more `capture-pane` flags (#614) |
| 816 |
|
| 817 |
{meth}`~libtmux.Pane.capture_pane` now supports `escape_sequences`, |
| 818 |
`escape_non_printable`, `join_wrapped`, `preserve_trailing`, and |
| 819 |
`trim_trailing`. |
| 820 |
|
| 821 |
| Parameter | tmux flag | Description | |
| 822 |
|-----------|-----------|-------------| |
| 823 |
| `escape_sequences` | `-e` | Include ANSI escape sequences. | |
| 824 |
| `escape_non_printable` | `-C` | Escape non-printable characters as octal. | |
| 825 |
| `join_wrapped` | `-J` | Join wrapped lines back together. | |
| 826 |
| `preserve_trailing` | `-N` | Preserve trailing spaces. | |
| 827 |
| `trim_trailing` | `-T` | Trim trailing empty positions on tmux 3.4+. | |
| 828 |
|
| 829 |
```python |
| 830 |
pane.send_keys('printf "\\033[31mRED\\033[0m"', enter=True) |
| 831 |
output = pane.capture_pane(escape_sequences=True) |
| 832 |
``` |
| 833 |
|
| 834 |
## libtmux 0.51.0 (2025-12-06) |
| 835 |
|
| 836 |
libtmux 0.51.0 turns the long-running 0.16-0.33 deprecation period into hard |
| 837 |
errors for the oldest API spellings. The migration target is the modern object |
| 838 |
attribute and {class}`~libtmux.common.QueryList` interface documented in |
| 839 |
{doc}`migration`. |
| 840 |
|
| 841 |
### Breaking changes |
| 842 |
|
| 843 |
#### Legacy API methods now raise `DeprecatedError` (#611) |
| 844 |
|
| 845 |
APIs deprecated in earlier releases now raise |
| 846 |
{exc}`~libtmux.exc.DeprecatedError` instead of emitting |
| 847 |
{class}`DeprecationWarning`. |
| 848 |
|
| 849 |
| Deprecated API | Replacement | Deprecated | Raises | Note | |
| 850 |
|----------------|-------------|------------|--------|------| |
| 851 |
| `kill_server()` | {meth}`~libtmux.Server.kill` | 0.30.0 | 0.51.0 | Server | |
| 852 |
| `attach_session()`, `kill_session()` | {meth}`~libtmux.Session.attach`, {meth}`~libtmux.Session.kill` | 0.30.0 | 0.51.0 | Session | |
| 853 |
| `select_window()`, `kill_window()`, `split_window()` | {meth}`~libtmux.Window.select`, {meth}`~libtmux.Window.kill`, {meth}`~libtmux.Window.split` | 0.30.0 / 0.33.0 | 0.51.0 | Window | |
| 854 |
| `resize_pane()`, `select_pane()`, `split_window()` | {meth}`~libtmux.Pane.resize`, {meth}`~libtmux.Pane.select`, {meth}`~libtmux.Pane.split` | 0.28.0 / 0.30.0 / 0.33.0 | 0.51.0 | Pane | |
| 855 |
| `attached_window`, `attached_pane` | {attr}`~libtmux.Session.active_window`, {attr}`~libtmux.Session.active_pane` / {attr}`~libtmux.Window.active_pane` | 0.31.0 | 0.51.0 | Session / Window | |
| 856 |
| `list_*()`, `_list_*()`, `_update_*()`, `children`, `where()`, `find_where()`, `get_by_id()` | {attr}`~libtmux.Server.sessions` / {attr}`~libtmux.Session.windows` / {attr}`~libtmux.Window.panes` with {meth}`~libtmux.common.QueryList.filter` / {meth}`~libtmux.common.QueryList.get` | 0.16.0 / 0.17.0 | 0.51.0 | Query helpers | |
| 857 |
| Dict-style access (`obj["key"]`, `obj.get(...)`) | Attribute access, such as {attr}`~libtmux.Window.window_name` | 0.17.0 | 0.51.0 | All tmux objects | |
| 858 |
|
| 859 |
The 0.50.0 option/hook deprecations remain soft warnings for now: |
| 860 |
|
| 861 |
| Deprecated API | Replacement | Deprecated | Note | |
| 862 |
|----------------|-------------|------------|------| |
| 863 |
| `set_window_option()`, `show_window_option()`, `show_window_options()` | {meth}`~libtmux.Window.set_option`, {meth}`~libtmux.Window.show_option`, {meth}`~libtmux.Window.show_options` | 0.50.0 | Window | |
| 864 |
| `g` option parameter | `global_` on {meth}`~libtmux.options.OptionsMixin.set_option`, {meth}`~libtmux.options.OptionsMixin.show_option`, {meth}`~libtmux.options.OptionsMixin.show_options` | 0.50.0 | Options and hooks | |
| 865 |
|
| 866 |
## libtmux 0.50.1 (2025-12-06) |
| 867 |
|
| 868 |
libtmux 0.50.1 is a documentation repair release for the 0.50 option and hook |
| 869 |
API. |
| 870 |
|
| 871 |
### Documentation |
| 872 |
|
| 873 |
#### API documentation anchors and return types were cleaned up (#612) |
| 874 |
|
| 875 |
The docs now use normalized headings and Sphinx module directives for more |
| 876 |
stable anchors and indexes. Type-hints configuration was adjusted to avoid RST |
| 877 |
indentation problems and forward-reference warnings, and |
| 878 |
{meth}`~libtmux.Pane.capture_pane` / {meth}`~libtmux.Pane.display_message` |
| 879 |
now document their list-returning behavior correctly. |
| 880 |
|
| 881 |
## libtmux 0.50.0 (2025-11-30) |
| 882 |
|
| 883 |
libtmux 0.50.0 is the options and hooks release. It adds one typed API for |
| 884 |
reading and writing tmux options across every object type, adds programmatic |
| 885 |
hook management, and introduces an indexed container for tmux's sparse option |
| 886 |
arrays. |
| 887 |
|
| 888 |
### Breaking changes |
| 889 |
|
| 890 |
#### Window option aliases are deprecated (#516) |
| 891 |
|
| 892 |
The window-specific option helpers remain available but now emit |
| 893 |
{class}`DeprecationWarning`. Use the shared option API instead. |
| 894 |
|
| 895 |
| Deprecated | Replacement | |
| 896 |
|------------|-------------| |
| 897 |
| `Window.set_window_option()` | {meth}`~libtmux.Window.set_option` | |
| 898 |
| `Window.show_window_option()` | {meth}`~libtmux.Window.show_option` | |
| 899 |
| `Window.show_window_options()` | {meth}`~libtmux.Window.show_options` | |
| 900 |
|
| 901 |
```python |
| 902 |
window.set_window_option("automatic-rename", "on") |
| 903 |
# DeprecationWarning: Window.set_window_option() is deprecated |
| 904 |
|
| 905 |
window.set_option("automatic-rename", True) |
| 906 |
``` |
| 907 |
|
| 908 |
### What's new |
| 909 |
|
| 910 |
#### Options share one API across Server, Session, Window, and Pane (#516) |
| 911 |
|
| 912 |
{class}`~libtmux.options.OptionsMixin` gives |
| 913 |
{class}`~libtmux.Server`, {class}`~libtmux.Session`, |
| 914 |
{class}`~libtmux.Window`, and {class}`~libtmux.Pane` the same |
| 915 |
{meth}`~libtmux.options.OptionsMixin.show_options`, |
| 916 |
{meth}`~libtmux.options.OptionsMixin.show_option`, |
| 917 |
{meth}`~libtmux.options.OptionsMixin.set_option`, and |
| 918 |
{meth}`~libtmux.options.OptionsMixin.unset_option` methods. |
| 919 |
|
| 920 |
```python |
| 921 |
session.show_option("base-index") |
| 922 |
window.set_option("automatic-rename", True) |
| 923 |
window.unset_option("automatic-rename") |
| 924 |
``` |
| 925 |
|
| 926 |
{meth}`~libtmux.options.OptionsMixin.set_option` supports tmux flags for format |
| 927 |
expansion, unsetting, global scope, child-pane cleanup, overwrite prevention, |
| 928 |
warning suppression, and append mode. |
| 929 |
|
| 930 |
#### Hooks are manageable from Python (#516) |
| 931 |
|
| 932 |
{class}`~libtmux.hooks.HooksMixin` adds hook operations across the tmux object |
| 933 |
hierarchy: set, show, list, unset, run, and bulk set indexed hook values. |
| 934 |
|
| 935 |
```python |
| 936 |
session.set_hook("session-renamed", 'display-message "Renamed!"') |
| 937 |
session.show_hook("session-renamed") |
| 938 |
session.unset_hook("session-renamed") |
| 939 |
``` |
| 940 |
|
| 941 |
#### Sparse tmux arrays have a Python container (#516) |
| 942 |
|
| 943 |
{class}`~libtmux._internal.sparse_array.SparseArray` preserves gaps in tmux |
| 944 |
arrays such as `command-alias[0]`, `command-alias[99]`, and |
| 945 |
`terminal-features[0]`. |
| 946 |
|
| 947 |
### Development |
| 948 |
|
| 949 |
#### tmux 3.2 is the baseline for options and hooks (#516) |
| 950 |
|
| 951 |
The options and hooks work relies on tmux 3.2+ behavior. Hook scope flags for |
| 952 |
windows and panes require tmux 3.2+, `client-active` and `window-resized` hooks |
| 953 |
require tmux 3.3+, and `pane-title-changed` requires tmux 3.5+. |
| 954 |
|
| 955 |
## libtmux 0.49.0 (2025-11-29) |
| 956 |
|
| 957 |
libtmux 0.49.0 completes the tmux 3.2 baseline transition announced in 0.48.0. |
| 958 |
|
| 959 |
### Breaking changes |
| 960 |
|
| 961 |
#### tmux 1.8 through 3.1c support was removed (#608) |
| 962 |
|
| 963 |
{data}`~libtmux.common.TMUX_MIN_VERSION` is now tmux 3.2a. The |
| 964 |
`TMUX_SOFT_MIN_VERSION` compatibility constant, its warning path, and older |
| 965 |
version guards were removed. Users who need older tmux releases should stay on |
| 966 |
libtmux 0.48.x. |
| 967 |
|
| 968 |
## libtmux 0.48.0 (2025-11-28) |
| 969 |
|
| 970 |
libtmux 0.48.0 starts the tmux 3.2 baseline transition and adds tmux 3.6 to |
| 971 |
the compatibility grid. |
| 972 |
|
| 973 |
### Breaking changes |
| 974 |
|
| 975 |
#### tmux below 3.2a is deprecated (#606) |
| 976 |
|
| 977 |
tmux versions below 3.2a emit {class}`FutureWarning` on first use. Set |
| 978 |
`LIBTMUX_SUPPRESS_VERSION_WARNING=1` to silence the transition warning. 0.48.x |
| 979 |
is the final line intended to support tmux below 3.2a. |
| 980 |
|
| 981 |
### What's new |
| 982 |
|
| 983 |
#### tmux 3.6 is covered in tests (#607) |
| 984 |
|
| 985 |
The test grid now includes tmux 3.6, and {data}`~libtmux.common.TMUX_MAX_VERSION` |
| 986 |
was raised from 3.4 to 3.6. |
| 987 |
|
| 988 |
### Development |
| 989 |
|
| 990 |
#### `TMUX_SOFT_MIN_VERSION` marks the transition floor (#606) |
| 991 |
|
| 992 |
The temporary soft-minimum constant records tmux 3.2a as the deprecation |
| 993 |
threshold for the 0.48.x compatibility window. |
| 994 |
|
| 995 |
## libtmux 0.47.0 (2025-11-01) |
| 996 |
|
| 997 |
libtmux 0.47.0 moves the supported Python baseline forward. |
| 998 |
|
| 999 |
### Breaking changes |
| 1000 |
|
| 1001 |
#### Python 3.9 support was dropped (#602) |
| 1002 |
|
| 1003 |
Python 3.10 is now the minimum supported Python version. Python 3.9 reached |
| 1004 |
end of life on October 31, 2025; see the [Python release |
| 1005 |
status](https://devguide.python.org/versions/) and |
| 1006 |
[PEP 596](https://peps.python.org/pep-0596/) for the upstream timeline. |
| 1007 |
|
| 1008 |
### Development |
| 1009 |
|
| 1010 |
#### Python 3.14 is in the test matrix (#601) |
| 1011 |
|
| 1012 |
The CI matrix now includes Python 3.14. |
| 1013 |
|
| 1014 |
## libtmux 0.46.2 (2025-05-26) |
| 1015 |
|
| 1016 |
libtmux 0.46.2 broadens path handling for start directories. |
| 1017 |
|
| 1018 |
### What's new |
| 1019 |
|
| 1020 |
#### Start-directory arguments accept path-like objects (#596, #597, #598) |
| 1021 |
|
| 1022 |
{meth}`~libtmux.Server.new_session`, |
| 1023 |
{meth}`~libtmux.Session.new_window`, {meth}`~libtmux.Pane.split`, |
| 1024 |
{meth}`~libtmux.Window.split`, and their compatibility aliases accept |
| 1025 |
`os.PathLike` values in addition to strings. Thanks @Data5tream for the |
| 1026 |
initial work. |
| 1027 |
|
| 1028 |
## libtmux 0.46.1 (2025-03-16) |
| 1029 |
|
| 1030 |
libtmux 0.46.1 is a maintenance release for the 0.46.x line. |
| 1031 |
|
| 1032 |
### Documentation |
| 1033 |
|
| 1034 |
#### `Pane.send_keys` typo fixed (#593) |
| 1035 |
|
| 1036 |
The {meth}`~libtmux.Pane.send_keys` documentation had a typo fixed. Thanks |
| 1037 |
@subbyte. |
| 1038 |
|
| 1039 |
## libtmux 0.46.0 (2025-02-25) |
| 1040 |
|
| 1041 |
libtmux 0.46.0 finishes the `libtmux.test` helper split by removing root-level |
| 1042 |
imports. |
| 1043 |
|
| 1044 |
### Breaking changes |
| 1045 |
|
| 1046 |
#### Root imports from `libtmux.test` were removed (#580) |
| 1047 |
|
| 1048 |
Import test helpers from their focused modules. |
| 1049 |
|
| 1050 |
```python |
| 1051 |
# Before 0.46.0 |
| 1052 |
from libtmux.test import namer |
| 1053 |
|
| 1054 |
# From 0.46.0 onward |
| 1055 |
from libtmux.test.random import namer |
| 1056 |
``` |
| 1057 |
|
| 1058 |
```python |
| 1059 |
# Before 0.46.0 |
| 1060 |
from libtmux.test import RETRY_INTERVAL_SECONDS |
| 1061 |
|
| 1062 |
# From 0.46.0 onward |
| 1063 |
from libtmux.test.constants import RETRY_INTERVAL_SECONDS |
| 1064 |
``` |
| 1065 |
|
| 1066 |
### Development |
| 1067 |
|
| 1068 |
#### Test helpers gained more coverage (#580) |
| 1069 |
|
| 1070 |
The test-helper modules gained stronger coverage for environment cleanup, |
| 1071 |
constants, random-name helpers, docstrings, and coverage markers. |
| 1072 |
|
| 1073 |
## libtmux 0.45.0 (2025-02-23) |
| 1074 |
|
| 1075 |
libtmux 0.45.0 splits the historical `libtmux.test` module into focused helper |
| 1076 |
modules. |
| 1077 |
|
| 1078 |
### Breaking changes |
| 1079 |
|
| 1080 |
#### Test helpers moved to focused modules (#578) |
| 1081 |
|
| 1082 |
Import paths changed from the root `libtmux.test` module to |
| 1083 |
`libtmux.test.constants`, `libtmux.test.environment`, |
| 1084 |
`libtmux.test.random`, and `libtmux.test.temporary`. |
| 1085 |
|
| 1086 |
```python |
| 1087 |
# Old |
| 1088 |
from libtmux.test import TEST_SESSION_PREFIX, EnvironmentVarGuard, namer |
| 1089 |
|
| 1090 |
# New |
| 1091 |
from libtmux.test.constants import TEST_SESSION_PREFIX |
| 1092 |
from libtmux.test.environment import EnvironmentVarGuard |
| 1093 |
from libtmux.test.random import namer |
| 1094 |
``` |
| 1095 |
|
| 1096 |
### Development |
| 1097 |
|
| 1098 |
#### CI checks runtime dependencies (#574) |
| 1099 |
|
| 1100 |
CI now includes a runtime-dependency check, inspired by @ppentchev's review |
| 1101 |
comments on #572. |
| 1102 |
|
| 1103 |
## libtmux 0.44.2 (2025-02-17) |
| 1104 |
|
| 1105 |
libtmux 0.44.2 fixes typing import behavior and cleans up version tests. |
| 1106 |
|
| 1107 |
### Fixes |
| 1108 |
|
| 1109 |
#### `typing_extensions` imports are guarded (#572) |
| 1110 |
|
| 1111 |
`typing_extensions` is now imported only when needed for type checking, fixing |
| 1112 |
runtime dependency issues. This continues the #564 work. |
| 1113 |
|
| 1114 |
### Development |
| 1115 |
|
| 1116 |
#### Version tests are clearer and more stable (#570) |
| 1117 |
|
| 1118 |
Version-related tests were consolidated into parametrized fixtures with named |
| 1119 |
cases, and the broken `test_window_rename` test was repaired. |
| 1120 |
|
| 1121 |
## libtmux 0.44.1 (2025-02-17) |
| 1122 |
|
| 1123 |
libtmux 0.44.1 is a small packaging fix. |
| 1124 |
|
| 1125 |
### Development |
| 1126 |
|
| 1127 |
#### `typing_extensions` is optional at runtime (#563) |
| 1128 |
|
| 1129 |
Runtime imports now avoid `typing_extensions` unless the running Python needs |
| 1130 |
it. Thanks @ppentchev. |
| 1131 |
|
| 1132 |
## libtmux 0.44.0 (2025-02-16) |
| 1133 |
|
| 1134 |
libtmux 0.44.0 adds context-manager support for tmux objects. |
| 1135 |
|
| 1136 |
### What's new |
| 1137 |
|
| 1138 |
#### Server, Session, Window, and Pane can clean themselves up (#566) |
| 1139 |
|
| 1140 |
{class}`~libtmux.Server`, {class}`~libtmux.Session`, |
| 1141 |
{class}`~libtmux.Window`, and {class}`~libtmux.Pane` implement context manager |
| 1142 |
protocols that kill the object on exit. |
| 1143 |
|
| 1144 |
```python |
| 1145 |
with Server() as server: |
| 1146 |
with server.new_session() as session: |
| 1147 |
with session.new_window() as window: |
| 1148 |
with window.split() as pane: |
| 1149 |
pane.send_keys('echo "Hello"') |
| 1150 |
``` |
| 1151 |
|
| 1152 |
## libtmux 0.43.0 (2025-02-15) |
| 1153 |
|
| 1154 |
libtmux 0.43.0 improves server initialization and testing ergonomics. |
| 1155 |
|
| 1156 |
### What's new |
| 1157 |
|
| 1158 |
#### Server initialization can be customized (#565) |
| 1159 |
|
| 1160 |
{class}`~libtmux.Server` accepts `socket_name_factory` and `on_init` |
| 1161 |
callbacks, making it easier to create multiple servers with unique names and |
| 1162 |
track initialized instances. |
| 1163 |
|
| 1164 |
#### `TestServer` creates isolated tmux servers (#565) |
| 1165 |
|
| 1166 |
The {fixture}`TestServer` fixture creates temporary tmux servers with unique |
| 1167 |
socket names, cleanup, tests, documentation, and doctest namespace support. |
| 1168 |
|
| 1169 |
### Documentation |
| 1170 |
|
| 1171 |
#### Traversal links were repaired (#567) |
| 1172 |
|
| 1173 |
The topic docs gained fixed "Topics" links and more traversal guidance. |
| 1174 |
|
| 1175 |
## libtmux 0.42.1 (2024-02-15) |
| 1176 |
|
| 1177 |
libtmux 0.42.1 repairs a typing import edge case. |
| 1178 |
|
| 1179 |
### Fixes |
| 1180 |
|
| 1181 |
#### `Self` is imported only for type checking (#562) |
| 1182 |
|
| 1183 |
Tests now import `Self` behind `TYPE_CHECKING`, avoiding runtime dependency |
| 1184 |
issues. Thanks @ppentchev. |
| 1185 |
|
| 1186 |
### Development |
| 1187 |
|
| 1188 |
#### Python-version-specific typing dependencies are explicit (#564) |
| 1189 |
|
| 1190 |
The testing and lint groups include `typing-extensions` for Python versions |
| 1191 |
that need it. |
| 1192 |
|
| 1193 |
## libtmux 0.42.0 (2025-02-02) |
| 1194 |
|
| 1195 |
libtmux 0.42.0 removes the last Python 2 console conversion helpers. |
| 1196 |
|
| 1197 |
### Fixes |
| 1198 |
|
| 1199 |
#### `tmux_cmd` uses text-mode subprocess output (#560) |
| 1200 |
|
| 1201 |
{func}`~libtmux.common.tmux_cmd` now uses `text=True`, deprecating |
| 1202 |
`console_to_str()` and `str_from_console()`. The compatibility helpers were |
| 1203 |
removed as Python 2-era artifacts. Fixes #558. |
| 1204 |
|
| 1205 |
## libtmux 0.41.0 (2025-02-02) |
| 1206 |
|
| 1207 |
libtmux 0.41.0 fixes default-socket representation and continues annotation |
| 1208 |
modernization. |
| 1209 |
|
| 1210 |
### Fixes |
| 1211 |
|
| 1212 |
#### `Server.__repr__()` uses the effective UID (#557) |
| 1213 |
|
| 1214 |
{meth}`~libtmux.Server.__repr__` now uses {func}`os.geteuid` when constructing |
| 1215 |
the default socket path. Fixes #556. Thanks @lazysegtree. |
| 1216 |
|
| 1217 |
### Documentation |
| 1218 |
|
| 1219 |
#### `Server.colors` docs list valid values (#544) |
| 1220 |
|
| 1221 |
The `colors` docstring now documents `88` and `256`. Thanks @TravisDart. |
| 1222 |
|
| 1223 |
### Development |
| 1224 |
|
| 1225 |
#### Annotation evaluation is deferred (#555) |
| 1226 |
|
| 1227 |
All Python files now use `from __future__ import annotations`, and Ruff rules |
| 1228 |
UP006 / UP007 enforce modern annotation syntax. |
| 1229 |
|
| 1230 |
## libtmux 0.40.1 (2024-12-24) |
| 1231 |
|
| 1232 |
libtmux 0.40.1 fixes environment propagation during session creation. |
| 1233 |
|
| 1234 |
### Fixes |
| 1235 |
|
| 1236 |
#### `Server.new_session()` handles environment variables correctly (#553) |
| 1237 |
|
| 1238 |
{meth}`~libtmux.Server.new_session` now passes environment values to new tmux |
| 1239 |
sessions correctly. Thanks @ppentchev. |
| 1240 |
|
| 1241 |
## libtmux 0.40.0 (2024-12-20) |
| 1242 |
|
| 1243 |
libtmux 0.40.0 is a maintenance release with one naming break and broad lint |
| 1244 |
cleanup. |
| 1245 |
|
| 1246 |
### Breaking changes |
| 1247 |
|
| 1248 |
#### `_global` was renamed to `global_` |
| 1249 |
|
| 1250 |
The keyword spelling now follows the Python-safe convention used elsewhere in |
| 1251 |
the API. |
| 1252 |
|
| 1253 |
### Development |
| 1254 |
|
| 1255 |
#### Ruff handled a broad lint cleanup (#550) |
| 1256 |
|
| 1257 |
The codebase was reformatted and lint-fixed with Ruff 0.8.4, including preview |
| 1258 |
and unsafe fixes, and legacy `test_select_pane` stability was improved (#552). |
| 1259 |
|
| 1260 |
## libtmux 0.39.0 (2024-11-26) |
| 1261 |
|
| 1262 |
libtmux 0.39.0 moves the Python floor forward. |
| 1263 |
|
| 1264 |
### Breaking changes |
| 1265 |
|
| 1266 |
#### Python 3.8 support was dropped (#548) |
| 1267 |
|
| 1268 |
Python 3.9 became the minimum for this release line. tmuxp 1.48.0 remained the |
| 1269 |
last tmuxp release for Python 3.8. |
| 1270 |
|
| 1271 |
## libtmux 0.38.1 (2024-11-26) |
| 1272 |
|
| 1273 |
libtmux 0.38.1 keeps Python 3.8 support temporarily. |
| 1274 |
|
| 1275 |
### Development |
| 1276 |
|
| 1277 |
#### Minimum Python stayed at 3.8 |
| 1278 |
|
| 1279 |
The project held the Python floor at 3.8 for this patch release. |
| 1280 |
|
| 1281 |
## libtmux 0.38.0 (2024-11-26) |
| 1282 |
|
| 1283 |
libtmux 0.38.0 changes the project management and build backend stack. |
| 1284 |
|
| 1285 |
### Breaking changes |
| 1286 |
|
| 1287 |
#### Package management moved from Poetry to uv (#547) |
| 1288 |
|
| 1289 |
[uv](https://github.com/astral-sh/uv) replaced Poetry for project and |
| 1290 |
dependency management. |
| 1291 |
|
| 1292 |
#### Builds moved from Poetry to hatchling (#547) |
| 1293 |
|
| 1294 |
[hatchling](https://hatch.pypa.io/latest/) replaced Poetry as the build |
| 1295 |
backend, following Python packaging guidance. |
| 1296 |
|
| 1297 |
### Documentation |
| 1298 |
|
| 1299 |
#### Query-list docstrings were fixed |
| 1300 |
|
| 1301 |
The docs for `ObjectDoesNotExist` and `MultipleObjectsReturned` in the query |
| 1302 |
list internals were corrected. |
| 1303 |
|
| 1304 |
### Development |
| 1305 |
|
| 1306 |
#### Ruff modernized more string formatting (#540) |
| 1307 |
|
| 1308 |
Ruff 0.4.2 applied more f-string modernization across the codebase. |
| 1309 |
|
| 1310 |
## libtmux 0.37.0 (04-21-2024) |
| 1311 |
|
| 1312 |
libtmux 0.37.0 is a test and maintenance release focused on parallel test runs |
| 1313 |
and flaky-test cleanup. |
| 1314 |
|
| 1315 |
### Development |
| 1316 |
|
| 1317 |
#### pytest can run in parallel (#522) |
| 1318 |
|
| 1319 |
`pytest-xdist` is available for parallel test runs. |
| 1320 |
|
| 1321 |
```console |
| 1322 |
$ py.test -n auto |
| 1323 |
``` |
| 1324 |
|
| 1325 |
pytest-watcher can also inherit the option: |
| 1326 |
|
| 1327 |
```console |
| 1328 |
$ env PYTEST_ADDOPTS='-n auto' make start |
| 1329 |
``` |
| 1330 |
|
| 1331 |
The release also relaxed timing-sensitive `retry_until()` assertions and made |
| 1332 |
`test_capture_pane_start` poll for the expected state. |
| 1333 |
|
| 1334 |
#### Poetry and docs tooling were refreshed (#522) |
| 1335 |
|
| 1336 |
Poetry moved from 1.8.1 to 1.8.2, and links that had previously been plain |
| 1337 |
text are now automatically linkified. |
| 1338 |
|
| 1339 |
## libtmux 0.36.0 (2024-03-24) |
| 1340 |
|
| 1341 |
libtmux 0.36.0 is an automated lint-cleanup release. |
| 1342 |
|
| 1343 |
### Development |
| 1344 |
|
| 1345 |
#### Ruff applied aggressive automated fixes (#539) |
| 1346 |
|
| 1347 |
Ruff 0.3.4 was used to apply lint and format fixes across the codebase, |
| 1348 |
including preview and unsafe fixes. |
| 1349 |
|
| 1350 |
## libtmux 0.35.1 (2024-03-23) |
| 1351 |
|
| 1352 |
libtmux 0.35.1 fixes attached-session detection. |
| 1353 |
|
| 1354 |
### Fixes |
| 1355 |
|
| 1356 |
#### `Server.attached_sessions` handles multiple clients (#537, #538) |
| 1357 |
|
| 1358 |
{attr}`~libtmux.Server.attached_sessions` now reports attached sessions |
| 1359 |
correctly when multiple clients are attached. Thanks @patrislav1. |
| 1360 |
|
| 1361 |
## libtmux 0.35.0 (2024-03-17) |
| 1362 |
|
| 1363 |
libtmux 0.35.0 removes redundant target/index handling. |
| 1364 |
|
| 1365 |
### Breaking changes |
| 1366 |
|
| 1367 |
#### Redundant targets and window indexes were removed (#536) |
| 1368 |
|
| 1369 |
Internal command construction no longer carries duplicate target and |
| 1370 |
`window_index` values through the codebase. |
| 1371 |
|
| 1372 |
## libtmux 0.34.0 (2024-03-17) |
| 1373 |
|
| 1374 |
libtmux 0.34.0 clarifies how custom command targets are passed. |
| 1375 |
|
| 1376 |
### Breaking changes |
| 1377 |
|
| 1378 |
#### `cmd()` target overrides are keyword-only (#535) |
| 1379 |
|
| 1380 |
All object-level `cmd()` methods require the `target=` keyword for custom or |
| 1381 |
overridden tmux targets. This avoids confusing tmux command targets with inner |
| 1382 |
shell arguments that may also include `-t`. |
| 1383 |
|
| 1384 |
Affected methods include {meth}`~libtmux.Server.cmd`, |
| 1385 |
{meth}`~libtmux.Session.cmd`, {meth}`~libtmux.Window.cmd`, and |
| 1386 |
{meth}`~libtmux.Pane.cmd`. |
| 1387 |
|
| 1388 |
## libtmux 0.33.0 (2024-03-17) |
| 1389 |
|
| 1390 |
libtmux 0.33.0 reshapes session/window creation and pane splitting around |
| 1391 |
clearer direction objects and keyword-only calls. |
| 1392 |
|
| 1393 |
### Breaking changes |
| 1394 |
|
| 1395 |
#### Window creation and splitting use modern names (#532, #534) |
| 1396 |
|
| 1397 |
{meth}`~libtmux.Session.new_window` learned `direction` via |
| 1398 |
{class}`~libtmux.constants.WindowDirection`, and |
| 1399 |
{meth}`~libtmux.Window.new_window` was added as a shorthand from an existing |
| 1400 |
window's position. Arguments after the window name are keyword-only following |
| 1401 |
[PEP 3102](https://www.python.org/dev/peps/pep-3102/). |
| 1402 |
|
| 1403 |
{meth}`~libtmux.Window.split_window` is deprecated in favor of |
| 1404 |
{meth}`~libtmux.Window.split`, and pane splitting moves from `vertical` / |
| 1405 |
`horizontal` booleans to {class}`~libtmux.constants.PaneDirection`. The split |
| 1406 |
API also gained `zoom`. |
| 1407 |
|
| 1408 |
### What's new |
| 1409 |
|
| 1410 |
#### Pane edge-position helpers were added (#532) |
| 1411 |
|
| 1412 |
{class}`~libtmux.Pane` exposes boolean helpers for pane position within a |
| 1413 |
window: {attr}`~libtmux.Pane.at_left`, {attr}`~libtmux.Pane.at_right`, |
| 1414 |
{attr}`~libtmux.Pane.at_top`, and {attr}`~libtmux.Pane.at_bottom`. |
| 1415 |
|
| 1416 |
### Development |
| 1417 |
|
| 1418 |
#### Poetry moved to 1.8.1 |
| 1419 |
|
| 1420 |
The development dependency manager was updated to Poetry 1.8.1. |
| 1421 |
|
| 1422 |
## libtmux 0.32.0 (2024-03-01) |
| 1423 |
|
| 1424 |
libtmux 0.32.0 is a packaging and tooling maintenance release. |
| 1425 |
|
| 1426 |
### Development |
| 1427 |
|
| 1428 |
#### Package imports and Ruff were refreshed (#531) |
| 1429 |
|
| 1430 |
Root package implicit imports were added to `__init__.py` thanks to @ssbarnea, |
| 1431 |
and Ruff moved from 0.2.2 to 0.3.0. |
| 1432 |
|
| 1433 |
## libtmux 0.31.0 (2024-02-17) |
| 1434 |
|
| 1435 |
libtmux 0.31.0 cleans up command method signatures and renames attached-object |
| 1436 |
properties to active-object properties. |
| 1437 |
|
| 1438 |
### Breaking changes |
| 1439 |
|
| 1440 |
#### `cmd()` methods were streamlined (#527) |
| 1441 |
|
| 1442 |
{meth}`~libtmux.Server.cmd`, {meth}`~libtmux.Session.cmd`, |
| 1443 |
{meth}`~libtmux.Window.cmd`, and {meth}`~libtmux.Pane.cmd` now use the command |
| 1444 |
string as the first positional argument and drop unused keyword arguments. |
| 1445 |
|
| 1446 |
#### Attached-object names became active-object names (#527) |
| 1447 |
|
| 1448 |
`Session.attached_window`, `Session.attached_pane`, and `Window.attached_pane` |
| 1449 |
were renamed to {attr}`~libtmux.Session.active_window`, |
| 1450 |
{attr}`~libtmux.Session.active_pane`, and |
| 1451 |
{attr}`~libtmux.Window.active_pane`. The old names were deprecated. |
| 1452 |
|
| 1453 |
### Documentation |
| 1454 |
|
| 1455 |
#### Command methods gained docs and doctests (#527) |
| 1456 |
|
| 1457 |
README and quickstart content now document `.cmd()` usage, and the command |
| 1458 |
methods gained docstrings and doctests. |
| 1459 |
|
| 1460 |
### Development |
| 1461 |
|
| 1462 |
#### `Server.attached_windows` uses `QueryList.filter()` (#527) |
| 1463 |
|
| 1464 |
The implementation now relies on {meth}`~libtmux.common.QueryList.filter`. |
| 1465 |
|
| 1466 |
### Post-release |
| 1467 |
|
| 1468 |
#### v0.31.0post0 (2024-02-17) |
| 1469 |
|
| 1470 |
Documentation-only updates followed the main release. |
| 1471 |
|
| 1472 |
## libtmux 0.30.2 (2024-02-16) |
| 1473 |
|
| 1474 |
libtmux 0.30.2 updates known tmux version bounds. |
| 1475 |
|
| 1476 |
### Development |
| 1477 |
|
| 1478 |
#### `TMUX_MAX_VERSION` moved to 3.4 |
| 1479 |
|
| 1480 |
The known tmux maximum version changed from 3.3 to 3.4. |
| 1481 |
|
| 1482 |
## libtmux 0.30.1 (2024-02-16) |
| 1483 |
|
| 1484 |
libtmux 0.30.1 aligns tests with the 0.30.0 method renames. |
| 1485 |
|
| 1486 |
### Fixes |
| 1487 |
|
| 1488 |
#### pytest plugin tests use current method names |
| 1489 |
|
| 1490 |
The pytest plugin and test modules were updated to call the renamed 0.30.0 |
| 1491 |
methods. |
| 1492 |
|
| 1493 |
## libtmux 0.30.0 (2024-02-16) |
| 1494 |
|
| 1495 |
libtmux 0.30.0 continues the modern object-method naming pass and adds pane |
| 1496 |
kill support. |
| 1497 |
|
| 1498 |
### What's new |
| 1499 |
|
| 1500 |
#### Panes can be killed directly |
| 1501 |
|
| 1502 |
{meth}`~libtmux.Pane.kill` was added. |
| 1503 |
|
| 1504 |
#### Creation and split methods gained useful arguments |
| 1505 |
|
| 1506 |
{meth}`~libtmux.Server.new_session` gained environment-variable support, and |
| 1507 |
{meth}`~libtmux.Window.split_window` learned `size` for row/column counts or |
| 1508 |
percentage values. |
| 1509 |
|
| 1510 |
### Development |
| 1511 |
|
| 1512 |
#### Legacy method names were deprecated |
| 1513 |
|
| 1514 |
`Window.select_window`, `Pane.select_pane`, `Session.attach_session`, |
| 1515 |
`Server.kill_server`, `Session.kill_session`, and `Window.kill_window` were |
| 1516 |
renamed to their shorter modern methods and left behind deprecation warnings. |
| 1517 |
|
| 1518 |
## libtmux 0.29.0 (2024-02-16) |
| 1519 |
|
| 1520 |
libtmux 0.29.0 prepares users for the method-renaming transition. |
| 1521 |
|
| 1522 |
### Fixes |
| 1523 |
|
| 1524 |
#### Deprecation warnings use the standard warning class (#526) |
| 1525 |
|
| 1526 |
APIs scheduled for deprecation now emit {class}`DeprecationWarning`, and pytest |
| 1527 |
ignores those expected warnings by default. |
| 1528 |
|
| 1529 |
## libtmux 0.28.1 (2024-02-15) |
| 1530 |
|
| 1531 |
libtmux 0.28.1 is maintenance for the 0.28 transition. |
| 1532 |
|
| 1533 |
### Documentation |
| 1534 |
|
| 1535 |
#### 0.28 migration docs were refined |
| 1536 |
|
| 1537 |
The docs and migration guide were updated for the 0.28.0 behavior changes. |
| 1538 |
|
| 1539 |
### Development |
| 1540 |
|
| 1541 |
#### CI actions moved to Node 20 |
| 1542 |
|
| 1543 |
GitHub Actions dependencies were bumped to Node 20-compatible versions. |
| 1544 |
|
| 1545 |
## libtmux 0.28.0 (2024-02-14) |
| 1546 |
|
| 1547 |
libtmux 0.28.0 changes default attachment behavior and modernizes pane/window |
| 1548 |
resizing. |
| 1549 |
|
| 1550 |
### Breaking changes |
| 1551 |
|
| 1552 |
#### New windows and splits are detached by default (#523) |
| 1553 |
|
| 1554 |
{meth}`~libtmux.Session.new_window` and |
| 1555 |
{meth}`~libtmux.Window.split_window` no longer attach/select by default. |
| 1556 |
Pass `attach=True` to keep the older behavior. |
| 1557 |
|
| 1558 |
#### Pane resizing moved to `Pane.resize()` (#523) |
| 1559 |
|
| 1560 |
`Pane.resize_pane()` was renamed to {meth}`~libtmux.Pane.resize`. Directional |
| 1561 |
flags now flow through {class}`~libtmux.constants.ResizeAdjustmentDirection`, |
| 1562 |
and `height`, `width`, and zoom controls are supported. |
| 1563 |
|
| 1564 |
### What's new |
| 1565 |
|
| 1566 |
#### Windows can be resized directly (#523) |
| 1567 |
|
| 1568 |
{meth}`~libtmux.Window.resize` was added. If pane resizing was ineffective in |
| 1569 |
older releases, resizing the window first may be the better approach. |
| 1570 |
|
| 1571 |
### Fixes |
| 1572 |
|
| 1573 |
#### Refresh and pane listing behavior improved (#523) |
| 1574 |
|
| 1575 |
{meth}`~libtmux.Window.refresh`, {meth}`~libtmux.Pane.refresh`, and the internal |
| 1576 |
refresh path now capture more state, and `Server.panes` lists panes across the |
| 1577 |
server instead of only the attached session. |
| 1578 |
|
| 1579 |
### Development |
| 1580 |
|
| 1581 |
#### tmux 3.4 entered the test matrix (#909) |
| 1582 |
|
| 1583 |
The test matrix gained tmux 3.4, and pytest fixture warnings were fixed (#519). |
| 1584 |
|
| 1585 |
## libtmux 0.27.1 (2024-02-07) |
| 1586 |
|
| 1587 |
libtmux 0.27.1 repairs source distribution contents. |
| 1588 |
|
| 1589 |
### Development |
| 1590 |
|
| 1591 |
#### `MIGRATION` is included in sdists (#517) |
| 1592 |
|
| 1593 |
The source distribution now includes the migration guide needed by downstream |
| 1594 |
packagers. Related to #508. |
| 1595 |
|
| 1596 |
## libtmux 0.27.0 (2024-02-07) |
| 1597 |
|
| 1598 |
libtmux 0.27.0 improves typed collection access. |
| 1599 |
|
| 1600 |
### What's new |
| 1601 |
|
| 1602 |
#### `QueryList` annotations cover descendant collections (#515) |
| 1603 |
|
| 1604 |
{class}`~libtmux.common.QueryList` typing improved for |
| 1605 |
{attr}`~libtmux.Server.sessions`, {attr}`~libtmux.Session.windows`, and |
| 1606 |
{attr}`~libtmux.Window.panes`, with doctests and pytest coverage ported from |
| 1607 |
libvcs. |
| 1608 |
|
| 1609 |
## libtmux 0.26.0 (2024-02-06) |
| 1610 |
|
| 1611 |
libtmux 0.26.0 tightens a deprecated lookup signature and strengthens linting. |
| 1612 |
|
| 1613 |
### Breaking changes |
| 1614 |
|
| 1615 |
#### Deprecated `get_by_id()` keyword names became explicit (#514) |
| 1616 |
|
| 1617 |
The already-deprecated `get_by_id()` helpers now use object-specific keyword |
| 1618 |
names: `session_id`, `window_id`, and `pane_id`. |
| 1619 |
|
| 1620 |
### Documentation |
| 1621 |
|
| 1622 |
#### Docstrings were refreshed (#514) |
| 1623 |
|
| 1624 |
Several docstrings were corrected and clarified. |
| 1625 |
|
| 1626 |
### Development |
| 1627 |
|
| 1628 |
#### Ruff lint coverage expanded (#514) |
| 1629 |
|
| 1630 |
The project enabled flake8-commas, flake8-builtins, and flake8-errmsg rules |
| 1631 |
through Ruff, and CodeQL moved from an advanced configuration file to GitHub's |
| 1632 |
default setup. |
| 1633 |
|
| 1634 |
## libtmux 0.25.0 (2023-11-25) |
| 1635 |
|
| 1636 |
libtmux 0.25.0 makes equality comparisons safer and continues docstring |
| 1637 |
coverage work. |
| 1638 |
|
| 1639 |
### Fixes |
| 1640 |
|
| 1641 |
#### Object equality returns `False` on type mismatch (#505, #510) |
| 1642 |
|
| 1643 |
{meth}`~libtmux.Server.__eq__`, {meth}`~libtmux.Session.__eq__`, |
| 1644 |
{meth}`~libtmux.Window.__eq__`, and {meth}`~libtmux.Pane.__eq__` now return |
| 1645 |
`False` instead of raising {class}`AssertionError` when compared with another |
| 1646 |
type. Thanks @m1guelperez for the window implementation. |
| 1647 |
|
| 1648 |
### Documentation |
| 1649 |
|
| 1650 |
#### Docstrings were expanded (#509) |
| 1651 |
|
| 1652 |
Functions, methods, classes, and packages gained docstrings. |
| 1653 |
|
| 1654 |
### Development |
| 1655 |
|
| 1656 |
#### pydocstyle is enforced through Ruff (#509) |
| 1657 |
|
| 1658 |
CI now includes the pydocstyle rule set. |
| 1659 |
|
| 1660 |
## libtmux 0.24.1 (2023-11-23) |
| 1661 |
|
| 1662 |
libtmux 0.24.1 removes obsolete packaging files. |
| 1663 |
|
| 1664 |
### Development |
| 1665 |
|
| 1666 |
#### Legacy requirements files were removed (#507) |
| 1667 |
|
| 1668 |
The unused `requirements/` directory was removed in favor of `pyproject.toml`, |
| 1669 |
and `gp-libs` was added to the test dependency group. |
| 1670 |
|
| 1671 |
## libtmux 0.24.0 (2023-11-19) |
| 1672 |
|
| 1673 |
libtmux 0.24.0 drops Python 3.7 and moves more configuration into modern |
| 1674 |
project files. |
| 1675 |
|
| 1676 |
### Breaking changes |
| 1677 |
|
| 1678 |
#### Python 3.7 support was dropped (#497) |
| 1679 |
|
| 1680 |
Python 3.7 reached end of life on June 27, 2023. A 0.23.x branch can be kept |
| 1681 |
for limited security maintenance if needed. |
| 1682 |
|
| 1683 |
### Development |
| 1684 |
|
| 1685 |
#### pytest and dependency groups moved into `pyproject.toml` (#499) |
| 1686 |
|
| 1687 |
pytest configuration moved into `pyproject.toml`, Poetry moved through the |
| 1688 |
1.6/1.7 line, and development dependencies now use Poetry dependency groups. |
| 1689 |
|
| 1690 |
#### Ruff format replaced Black (#506) |
| 1691 |
|
| 1692 |
Formatting moved from Black to `ruff format`, keeping the same style while |
| 1693 |
removing a separate dependency. |
| 1694 |
|
| 1695 |
#### CI dependencies were refreshed |
| 1696 |
|
| 1697 |
`dorny/paths-filter` and `codecov/codecov-action` were updated. |
| 1698 |
|
| 1699 |
## libtmux 0.23.2 (2023-09-09) |
| 1700 |
|
| 1701 |
libtmux 0.23.2 marks the final Python 3.7 cut of the 0.23.x line. |
| 1702 |
|
| 1703 |
### Breaking changes |
| 1704 |
|
| 1705 |
#### Python 3.7 is at end of life |
| 1706 |
|
| 1707 |
This release exists as the final Python 3.7-compatible point before the |
| 1708 |
project moves forward. |
| 1709 |
|
| 1710 |
## libtmux 0.23.1 (2023-09-02) |
| 1711 |
|
| 1712 |
libtmux 0.23.1 is a typo and lint-rule maintenance release. |
| 1713 |
|
| 1714 |
### Development |
| 1715 |
|
| 1716 |
#### typos-cli cleaned up spelling issues |
| 1717 |
|
| 1718 |
Automated typo fixes were applied with [typos-cli](https://github.com/crate-ci/typos). |
| 1719 |
The Ruff ERA / eradicate rule was removed because its false positives were too |
| 1720 |
costly. |
| 1721 |
|
| 1722 |
## libtmux 0.23.0 (2023-08-20) |
| 1723 |
|
| 1724 |
libtmux 0.23.0 is a Ruff-driven code-quality release. |
| 1725 |
|
| 1726 |
### Development |
| 1727 |
|
| 1728 |
#### More Ruff rules were applied (#488) |
| 1729 |
|
| 1730 |
Additional Ruff rules, including import sorting, were applied by hand and with |
| 1731 |
automated fixes. |
| 1732 |
|
| 1733 |
### Post-release |
| 1734 |
|
| 1735 |
#### v0.23.0post0 (2023-08-20) |
| 1736 |
|
| 1737 |
Code comments missed during the initial Ruff QA pass were repaired. |
| 1738 |
|
| 1739 |
#### v0.23.0post1 (2023-08-26) |
| 1740 |
|
| 1741 |
Additional ERA001 cleanups were applied. |
| 1742 |
|
| 1743 |
#### v0.23.0post2 (2023-08-28) |
| 1744 |
|
| 1745 |
More ERA001 cleanups followed. |
| 1746 |
|
| 1747 |
## libtmux 0.22.2 (2023-08-20) |
| 1748 |
|
| 1749 |
libtmux 0.22.2 removes an obsolete build dependency. |
| 1750 |
|
| 1751 |
### Development |
| 1752 |
|
| 1753 |
#### `setuptools` is no longer required (#495) |
| 1754 |
|
| 1755 |
The build system no longer requires setuptools. Related to #493 and #494. |
| 1756 |
|
| 1757 |
## libtmux 0.22.1 (2023-05-28) |
| 1758 |
|
| 1759 |
libtmux 0.22.1 keeps Black available while Ruff formatting matures. |
| 1760 |
|
| 1761 |
### Development |
| 1762 |
|
| 1763 |
#### Black returned as a companion formatter |
| 1764 |
|
| 1765 |
Black was added back temporarily until Ruff fully replaced it for formatting. |
| 1766 |
|
| 1767 |
## libtmux 0.22.0 (2023-05-27) |
| 1768 |
|
| 1769 |
libtmux 0.22.0 starts the migration to Ruff for linting, import sorting, and |
| 1770 |
formatting. |
| 1771 |
|
| 1772 |
### Development |
| 1773 |
|
| 1774 |
#### Ruff replaces several Python quality tools |
| 1775 |
|
| 1776 |
[Ruff](https://ruff.rs) replaces Black, isort, flake8, and several flake8 |
| 1777 |
plugins for the main quality loop. Poetry also moved from 1.4.0 to 1.5.0. |
| 1778 |
|
| 1779 |
## libtmux 0.21.1 (2023-04-07) |
| 1780 |
|
| 1781 |
libtmux 0.21.1 keeps mypy compatibility current. |
| 1782 |
|
| 1783 |
### Fixes |
| 1784 |
|
| 1785 |
#### Skip-default-fields repr typing works with mypy 1.2.0 |
| 1786 |
|
| 1787 |
The repr mixin typing was fixed for mypy 1.2.0. |
| 1788 |
|
| 1789 |
### Development |
| 1790 |
|
| 1791 |
#### mypy moved to 1.2.0 |
| 1792 |
|
| 1793 |
The type checker dependency was updated. |
| 1794 |
|
| 1795 |
## libtmux 0.21.0 (2023-01-29) |
| 1796 |
|
| 1797 |
libtmux 0.21.0 changes the internal separator used for tmux format parsing. |
| 1798 |
|
| 1799 |
### Breaking changes |
| 1800 |
|
| 1801 |
#### The format separator changed from `|` to `␞` (#475) |
| 1802 |
|
| 1803 |
`LIBTMUX_TMUX_FORMAT_SEPARATOR` now defaults to the record-separator glyph, |
| 1804 |
fixing `buffer_sample` and similar tmux format values that legitimately contain |
| 1805 |
pipes. Related to #471 and #472. |
| 1806 |
|
| 1807 |
## libtmux 0.20.0 (2023-01-15) |
| 1808 |
|
| 1809 |
libtmux 0.20.0 improves session sizing and test fixture customization. |
| 1810 |
|
| 1811 |
### What's new |
| 1812 |
|
| 1813 |
#### Session creation accepts dimensions (#469) |
| 1814 |
|
| 1815 |
{meth}`~libtmux.Server.new_session` accepts `x` and `y` for tmux session size. |
| 1816 |
Thanks @rockandska. |
| 1817 |
|
| 1818 |
#### The `session_params` fixture can override session creation (#470) |
| 1819 |
|
| 1820 |
{fixture}`session_params` is a dictionary consumed directly by the |
| 1821 |
{fixture}`session` pytest fixture. |
| 1822 |
|
| 1823 |
## libtmux 0.19.1 (2022-01-07) |
| 1824 |
|
| 1825 |
libtmux 0.19.1 removes a problematic refresh from window option setting. |
| 1826 |
|
| 1827 |
### Fixes |
| 1828 |
|
| 1829 |
#### `Window.set_window_option()` no longer refreshes (#467) |
| 1830 |
|
| 1831 |
The compatibility method stopped refreshing after setting a window option, |
| 1832 |
matching downstream tmuxp expectations. |
| 1833 |
|
| 1834 |
## libtmux 0.19.0 (2022-01-07) |
| 1835 |
|
| 1836 |
libtmux 0.19.0 adds ranged pane capture. |
| 1837 |
|
| 1838 |
### What's new |
| 1839 |
|
| 1840 |
#### `Pane.capture_pane()` accepts `start` and `end` (#465) |
| 1841 |
|
| 1842 |
{meth}`~libtmux.Pane.capture_pane` can capture a specific line range. |
| 1843 |
|
| 1844 |
## libtmux 0.18.3 (2023-01-07) |
| 1845 |
|
| 1846 |
libtmux 0.18.3 improves failed-object lookup errors. |
| 1847 |
|
| 1848 |
### Fixes |
| 1849 |
|
| 1850 |
#### `fetch_objs()` reports lookup details (#466) |
| 1851 |
|
| 1852 |
{func}`~libtmux.neo.fetch_objs` now raises lookup errors with details about the |
| 1853 |
failed search. |
| 1854 |
|
| 1855 |
## libtmux 0.18.2 (2022-12-30) |
| 1856 |
|
| 1857 |
libtmux 0.18.2 fixes default-socket session creation. |
| 1858 |
|
| 1859 |
### Fixes |
| 1860 |
|
| 1861 |
#### Server session launch works on the default socket (#857) |
| 1862 |
|
| 1863 |
Creating a new session on the default socket was repaired. |
| 1864 |
|
| 1865 |
## libtmux 0.18.1 (2022-12-28) |
| 1866 |
|
| 1867 |
libtmux 0.18.1 is a documentation cleanup release. |
| 1868 |
|
| 1869 |
### Fixes |
| 1870 |
|
| 1871 |
#### Window pane docs were corrected |
| 1872 |
|
| 1873 |
`Window.panes` docstrings and unused documentation were cleaned up. |
| 1874 |
|
| 1875 |
## libtmux 0.18.0 (2022-12-27) |
| 1876 |
|
| 1877 |
libtmux 0.18.0 gives servers useful representations and default socket paths. |
| 1878 |
|
| 1879 |
### Breaking changes |
| 1880 |
|
| 1881 |
#### `Server.__repr__` now reports socket identity |
| 1882 |
|
| 1883 |
{meth}`~libtmux.Server.__repr__` reports `socket_name` or `socket_path` instead |
| 1884 |
of the default Python object repr. |
| 1885 |
|
| 1886 |
## libtmux 0.17.2 (2022-12-27) |
| 1887 |
|
| 1888 |
libtmux 0.17.2 continues moving pane listing internals behind deprecation |
| 1889 |
paths. |
| 1890 |
|
| 1891 |
### Development |
| 1892 |
|
| 1893 |
#### Server pane-listing internals were deprecated |
| 1894 |
|
| 1895 |
`Server._list_panes` and `Server._update_panes` moved to the deprecated API |
| 1896 |
surface. |
| 1897 |
|
| 1898 |
## libtmux 0.17.1 (2022-12-27) |
| 1899 |
|
| 1900 |
libtmux 0.17.1 tightens documentation and child-collection deprecations. |
| 1901 |
|
| 1902 |
### Fixes |
| 1903 |
|
| 1904 |
#### Child collection deprecation warnings were added |
| 1905 |
|
| 1906 |
Documentation was fixed, and `Server.children`, `Session.children`, and |
| 1907 |
`Window.children` now warn. |
| 1908 |
|
| 1909 |
## libtmux 0.17.0 (2022-12-26) |
| 1910 |
|
| 1911 |
libtmux 0.17.0 introduces the modern collection and attribute access model. |
| 1912 |
|
| 1913 |
### Breaking changes |
| 1914 |
|
| 1915 |
#### Relationships moved to collection attributes (#426) |
| 1916 |
|
| 1917 |
Use relation attributes such as {attr}`~libtmux.Session.windows` instead of |
| 1918 |
methods such as `session.list_windows()` or `session._windows()`. |
| 1919 |
|
| 1920 |
```python |
| 1921 |
# 0.16 and earlier |
| 1922 |
session.find_where({"window_name": my_window}) |
| 1923 |
|
| 1924 |
# 0.17 and later |
| 1925 |
session.windows.get(window_name=my_window, default=None) |
| 1926 |
``` |
| 1927 |
|
| 1928 |
Missing results raise |
| 1929 |
{exc}`~libtmux._internal.query_list.ObjectDoesNotExist`; ambiguous results raise |
| 1930 |
{exc}`~libtmux._internal.query_list.MultipleObjectsReturned`. |
| 1931 |
|
| 1932 |
#### tmux data moved from mapping access to attributes (#426) |
| 1933 |
|
| 1934 |
Use attributes such as `window.id` instead of `window["id"]` or |
| 1935 |
`window.get("id")`. Optional access can use Python's `getattr()`. |
| 1936 |
|
| 1937 |
### What's new |
| 1938 |
|
| 1939 |
#### Server liveness helpers were added (#448) |
| 1940 |
|
| 1941 |
{meth}`~libtmux.Server.is_alive` and |
| 1942 |
{meth}`~libtmux.Server.raise_if_dead` report whether the tmux server is |
| 1943 |
available. |
| 1944 |
|
| 1945 |
### Development |
| 1946 |
|
| 1947 |
#### `sphinx-click` was removed |
| 1948 |
|
| 1949 |
The unused development dependency was dropped. |
| 1950 |
|
| 1951 |
## libtmux 0.16.1 (2022-12-12) |
| 1952 |
|
| 1953 |
libtmux 0.16.1 removes an unnecessary version-parsing dependency. |
| 1954 |
|
| 1955 |
### Fixes |
| 1956 |
|
| 1957 |
#### `packaging.version.Version` is no longer required (#461) |
| 1958 |
|
| 1959 |
libtmux now avoids strict `packaging` version parsing so it does not pin or |
| 1960 |
interfere with unrelated application dependencies. |
| 1961 |
|
| 1962 |
## libtmux 0.16.0 (2022-12-10) |
| 1963 |
|
| 1964 |
libtmux 0.16.0 removes `distutils` version parsing and improves environment |
| 1965 |
support for new windows. |
| 1966 |
|
| 1967 |
### Breaking changes |
| 1968 |
|
| 1969 |
#### tmux version parsing no longer relies on `distutils` (#351) |
| 1970 |
|
| 1971 |
The project vendorizes legacy version handling instead of using |
| 1972 |
`distutils.version.LooseVersion`, which cannot correctly model tmux versions |
| 1973 |
such as `3.1a`. |
| 1974 |
|
| 1975 |
### What's new |
| 1976 |
|
| 1977 |
#### Window and session creation accept environment dictionaries (#453) |
| 1978 |
|
| 1979 |
{meth}`~libtmux.Window.split_window` and |
| 1980 |
{meth}`~libtmux.Session.new_window` can pass environment variables into new tmux |
| 1981 |
processes. Thanks @zappolowski. |
| 1982 |
|
| 1983 |
## libtmux 0.15.10 (2022-11-05) |
| 1984 |
|
| 1985 |
libtmux 0.15.10 continues shell/environment test stabilization. |
| 1986 |
|
| 1987 |
### Development |
| 1988 |
|
| 1989 |
#### Shell-specific test assumptions were reduced (#452, #455) |
| 1990 |
|
| 1991 |
`test_capture_pane` and environment tests were made more portable, and more |
| 1992 |
Bash-specific assumptions were removed. Thanks @zappolowski. |
| 1993 |
|
| 1994 |
## libtmux 0.15.9 (2022-10-30) |
| 1995 |
|
| 1996 |
libtmux 0.15.9 fixes command-not-found behavior and updates Python metadata. |
| 1997 |
|
| 1998 |
### Fixes |
| 1999 |
|
| 2000 |
#### `tmux_cmd()` raises `TmuxCommandNotFound` correctly (#450) |
| 2001 |
|
| 2002 |
{func}`~libtmux.common.tmux_cmd` now reports missing tmux binaries through |
| 2003 |
{exc}`~libtmux.exc.TmuxCommandNotFound`. |
| 2004 |
|
| 2005 |
### Development |
| 2006 |
|
| 2007 |
#### Python 3.11 support metadata was added (#451) |
| 2008 |
|
| 2009 |
CI uses Python 3.11, trove classifiers include it, and local version-tooling |
| 2010 |
configuration was updated. |
| 2011 |
|
| 2012 |
## libtmux 0.15.8 (2022-10-02) |
| 2013 |
|
| 2014 |
libtmux 0.15.8 improves compatibility with tmuxp's empty window names. |
| 2015 |
|
| 2016 |
### Fixes |
| 2017 |
|
| 2018 |
#### Empty `window_name` is supported in `Session.new_window()` (#444) |
| 2019 |
|
| 2020 |
{meth}`~libtmux.Session.new_window` handles `window_name=""` more reliably for |
| 2021 |
downstream tmuxp. Thanks @trankchung. |
| 2022 |
|
| 2023 |
## libtmux 0.15.7 (2022-09-23) |
| 2024 |
|
| 2025 |
libtmux 0.15.7 consolidates coverage configuration. |
| 2026 |
|
| 2027 |
### Development |
| 2028 |
|
| 2029 |
#### coverage config moved to `pyproject.toml` (#443) |
| 2030 |
|
| 2031 |
The separate `.coveragerc` file was removed. |
| 2032 |
|
| 2033 |
## libtmux 0.15.6 (2022-09-23) |
| 2034 |
|
| 2035 |
libtmux 0.15.6 removes an obsolete manifest file. |
| 2036 |
|
| 2037 |
### Development |
| 2038 |
|
| 2039 |
#### `MANIFEST.in` was removed |
| 2040 |
|
| 2041 |
Poetry's `pyproject.toml` include configuration now owns source distribution |
| 2042 |
contents. |
| 2043 |
|
| 2044 |
## libtmux 0.15.5 (2022-09-23) |
| 2045 |
|
| 2046 |
libtmux 0.15.5 cleans up tmuxp workspace metadata. |
| 2047 |
|
| 2048 |
### Development |
| 2049 |
|
| 2050 |
#### `.tmuxp-before-script.sh` was removed from `.tmuxp.yaml` |
| 2051 |
|
| 2052 |
The tmuxp workspace config no longer references that helper. |
| 2053 |
|
| 2054 |
## libtmux 0.15.4 (2022-09-21) |
| 2055 |
|
| 2056 |
libtmux 0.15.4 fixes packaging and pytest compatibility. |
| 2057 |
|
| 2058 |
### Fixes |
| 2059 |
|
| 2060 |
#### Stable pytest imports support downstream packagers (#441, #442) |
| 2061 |
|
| 2062 |
pytest API imports now use stable paths where possible, helping downstream |
| 2063 |
packages such as Arch. |
| 2064 |
|
| 2065 |
### Development |
| 2066 |
|
| 2067 |
#### source distributions include test support files (#441, #442) |
| 2068 |
|
| 2069 |
`.tmuxp-before-script.sh` and `conftest.py` are included in source |
| 2070 |
distributions. |
| 2071 |
|
| 2072 |
## libtmux 0.15.3 (2022-09-20) |
| 2073 |
|
| 2074 |
libtmux 0.15.3 improves pytest plugin examples and doctest discovery. |
| 2075 |
|
| 2076 |
### Documentation |
| 2077 |
|
| 2078 |
#### pytest plugin examples were added (#439, #440) |
| 2079 |
|
| 2080 |
Examples for the pytest plugin were added, and `conftest.py` moved to the repo |
| 2081 |
root so README doctests can run without proxying through `docs/index.md`. |
| 2082 |
|
| 2083 |
## libtmux 0.15.2 (2022-09-17) |
| 2084 |
|
| 2085 |
libtmux 0.15.2 is a maintenance release for test plugin coverage and CI speed. |
| 2086 |
|
| 2087 |
### Development |
| 2088 |
|
| 2089 |
#### pytest plugin tests and CI speedups landed (#423, #428) |
| 2090 |
|
| 2091 |
The pytest plugin gained initial self-tests, trove classifiers note pytest |
| 2092 |
support, and CI avoids unnecessary package downloads while splitting release |
| 2093 |
work into a separate job. |
| 2094 |
|
| 2095 |
## libtmux 0.15.1 (2022-09-11) |
| 2096 |
|
| 2097 |
libtmux 0.15.1 is a small packaging and docs cleanup. |
| 2098 |
|
| 2099 |
### Documentation |
| 2100 |
|
| 2101 |
#### Quickstart documentation was cleaned up |
| 2102 |
|
| 2103 |
The quickstart page was simplified. |
| 2104 |
|
| 2105 |
### Development |
| 2106 |
|
| 2107 |
#### Packaging groups were cleaned up |
| 2108 |
|
| 2109 |
Old issue package metadata and an extra package grouping were removed. |
| 2110 |
|
| 2111 |
## libtmux 0.15.0 (2022-09-10) |
| 2112 |
|
| 2113 |
libtmux 0.15.0 adds the pytest plugin and moves the package into the modern |
| 2114 |
`src/` layout. |
| 2115 |
|
| 2116 |
### Breaking changes |
| 2117 |
|
| 2118 |
#### `common.which()` was replaced with `shutil.which()` (#407) |
| 2119 |
|
| 2120 |
The project now relies on {func}`shutil.which` for executable lookup. Thanks |
| 2121 |
@rocksandska. |
| 2122 |
|
| 2123 |
#### `tmux_cmd` preserves interior empty lines (#405) |
| 2124 |
|
| 2125 |
{func}`~libtmux.common.tmux_cmd` now strips only trailing empty lines. This |
| 2126 |
better matches {meth}`~libtmux.Pane.capture_pane` output. Fixes #402. Thanks |
| 2127 |
@rockandska. |
| 2128 |
|
| 2129 |
#### Source files moved into `src/` (#414) |
| 2130 |
|
| 2131 |
The package adopted the `src/` layout. |
| 2132 |
|
| 2133 |
### What's new |
| 2134 |
|
| 2135 |
#### pytest plugin added (#411) |
| 2136 |
|
| 2137 |
libtmux now ships a pytest plugin for tests that need tmux fixtures. |
| 2138 |
|
| 2139 |
### Documentation |
| 2140 |
|
| 2141 |
#### Docs doctests and changelog rendering improved (#410, #412) |
| 2142 |
|
| 2143 |
Documentation examples were corrected, doctests are exercised through |
| 2144 |
pytest-doctest-docutils, changelog issue references are linkified, and autodoc |
| 2145 |
table-of-contents rendering was repaired. |
| 2146 |
|
| 2147 |
### Development |
| 2148 |
|
| 2149 |
#### flake8 plugins were added (#408, #409) |
| 2150 |
|
| 2151 |
flake8-bugbear and flake8-comprehensions joined the development toolchain. |
| 2152 |
|
| 2153 |
## libtmux 0.14.2 (2022-08-17) |
| 2154 |
|
| 2155 |
libtmux 0.14.2 completes the `new_session()` fix started in 0.14.1. |
| 2156 |
|
| 2157 |
### Fixes |
| 2158 |
|
| 2159 |
#### `Server.new_session()` works without `session_name` (#401) |
| 2160 |
|
| 2161 |
{meth}`~libtmux.Server.new_session` no longer passes `None` as the session |
| 2162 |
name. Fixes #399. |
| 2163 |
|
| 2164 |
## libtmux 0.14.1 (2022-08-17) |
| 2165 |
|
| 2166 |
libtmux 0.14.1 starts fixing unnamed session creation. |
| 2167 |
|
| 2168 |
### Fixes |
| 2169 |
|
| 2170 |
#### `Server.new_session()` accepts omitted `session_name` (#400) |
| 2171 |
|
| 2172 |
{meth}`~libtmux.Server.new_session` can be called without `session_name`, |
| 2173 |
although 0.14.2 completed the remaining `None` handling. Fixes #399. |
| 2174 |
|
| 2175 |
## libtmux 0.14.0 (2022-08-05) |
| 2176 |
|
| 2177 |
libtmux 0.14.0 changes the `send_keys` history default and sets up executable |
| 2178 |
doctests. |
| 2179 |
|
| 2180 |
### Breaking changes |
| 2181 |
|
| 2182 |
#### `Pane.send_keys(suppress_history)` defaults to `False` (#395) |
| 2183 |
|
| 2184 |
{meth}`~libtmux.Pane.send_keys` no longer suppresses shell history unless asked |
| 2185 |
to do so. |
| 2186 |
|
| 2187 |
### Documentation |
| 2188 |
|
| 2189 |
#### Doctest fixtures were introduced (#394) |
| 2190 |
|
| 2191 |
Initial doctest examples landed, `temp_window()` was fixed, and pytest config |
| 2192 |
moved so doctests can discover the libtmux fixtures. |
| 2193 |
|
| 2194 |
## libtmux 0.13.0 (2022-08-05) |
| 2195 |
|
| 2196 |
libtmux 0.13.0 reaches strict mypy compliance and removes older item-lookup |
| 2197 |
shortcuts. |
| 2198 |
|
| 2199 |
### Breaking changes |
| 2200 |
|
| 2201 |
#### Individual option/environment item lookups were removed (#390) |
| 2202 |
|
| 2203 |
Bulk methods such as `show_environment()` and `show_options()` now keep their |
| 2204 |
dictionary-returning behavior, while single-key access moves to explicit |
| 2205 |
methods such as `getenv()` and `show_option()`. |
| 2206 |
|
| 2207 |
```python |
| 2208 |
# Before |
| 2209 |
server.show_environment("DISPLAY") |
| 2210 |
|
| 2211 |
# After |
| 2212 |
server.getenv("DISPLAY") |
| 2213 |
``` |
| 2214 |
|
| 2215 |
```python |
| 2216 |
# Before |
| 2217 |
session.show_options("base-index") |
| 2218 |
|
| 2219 |
# After |
| 2220 |
session.show_option("base-index") |
| 2221 |
``` |
| 2222 |
|
| 2223 |
`libtmux.test.retry()` was removed after its 0.12 deprecation period (#393). |
| 2224 |
|
| 2225 |
### What's new |
| 2226 |
|
| 2227 |
#### Typing reached `mypy --strict` (#383, #392) |
| 2228 |
|
| 2229 |
Core modules now satisfy strict mypy checks. |
| 2230 |
|
| 2231 |
### Development |
| 2232 |
|
| 2233 |
#### A stray legacy name was fixed (#391) |
| 2234 |
|
| 2235 |
The incorrect `findWhere()` spelling was corrected. |
| 2236 |
|
| 2237 |
## libtmux 0.12.0 (2022-07-13) |
| 2238 |
|
| 2239 |
libtmux 0.12.0 restores Python 3.7/3.8 support, expands tmux compatibility, and |
| 2240 |
adds the retry helper that replaced the old test retry API. |
| 2241 |
|
| 2242 |
### What's new |
| 2243 |
|
| 2244 |
#### tmux 3.3a is in the supported range |
| 2245 |
|
| 2246 |
tmux 3.3a was added to CI, and `TMUX_MAX_VERSION` moved from 2.4 to 3.3. |
| 2247 |
|
| 2248 |
#### `retry_until()` replaces the old retry helper (#368, #372) |
| 2249 |
|
| 2250 |
{func}`libtmux.test.retry.retry_until` polls a callback until it succeeds or |
| 2251 |
times out, raising {exc}`~libtmux.exc.WaitTimeout` by default. Thanks |
| 2252 |
@categulario. |
| 2253 |
|
| 2254 |
### Documentation |
| 2255 |
|
| 2256 |
#### API documentation was reorganized (#367) |
| 2257 |
|
| 2258 |
The docs gained a renewed logo, split API pages for utilities, exceptions, and |
| 2259 |
test helpers, and new Reference sections for server, session, window, and pane |
| 2260 |
objects. |
| 2261 |
|
| 2262 |
### Development |
| 2263 |
|
| 2264 |
#### Python 3.7 and 3.8 returned (#375) |
| 2265 |
|
| 2266 |
Support for Python 3.7 and 3.8 was restored, tox was removed, and core object |
| 2267 |
relations gained type annotations (#385). |
| 2268 |
|
| 2269 |
## libtmux 0.11.0 (2022-03-10) |
| 2270 |
|
| 2271 |
libtmux 0.11.0 adds early typing work and documents the format-separator escape |
| 2272 |
hatch. |
| 2273 |
|
| 2274 |
### Compatibility |
| 2275 |
|
| 2276 |
#### Python 3.7 and 3.8 support was extended later |
| 2277 |
|
| 2278 |
This release originally marked Python 3.7/3.8 as ending, but 0.12.0 restored |
| 2279 |
support. |
| 2280 |
|
| 2281 |
#### tmux format splitting became configurable (#289, #343) |
| 2282 |
|
| 2283 |
The internal separator used to split tmux format output is configurable through |
| 2284 |
`LIBTMUX_TMUX_FORMAT_SEPARATOR`. Thanks @JonathanRaiman and @jagguli. |
| 2285 |
|
| 2286 |
### Documentation |
| 2287 |
|
| 2288 |
#### The sidebar and development-release docs were reorganized |
| 2289 |
|
| 2290 |
The docs gained sectioned navigation and instructions for installing |
| 2291 |
developmental releases. |
| 2292 |
|
| 2293 |
### Development |
| 2294 |
|
| 2295 |
#### Basic type annotations were added (#359, #361) |
| 2296 |
|
| 2297 |
Early annotations, cleanup, and one-time Black formatting landed. Thanks |
| 2298 |
@otherJL0. |
| 2299 |
|
| 2300 |
## libtmux 0.10.3 (2022-01-10) |
| 2301 |
|
| 2302 |
libtmux 0.10.3 is the first experimental Poetry-built release. |
| 2303 |
|
| 2304 |
### Compatibility |
| 2305 |
|
| 2306 |
#### Python 3.6 support was dropped (#344) |
| 2307 |
|
| 2308 |
Python 3.10 metadata was added, with a note that version constraints still |
| 2309 |
needed more compatibility work. |
| 2310 |
|
| 2311 |
### Development |
| 2312 |
|
| 2313 |
#### Poetry build support landed (#347) |
| 2314 |
|
| 2315 |
The project started using `poetry build`, moved Poetry to 1.1.12, and added |
| 2316 |
pre-commit configuration. Packagers were directed to #346 for issues. |
| 2317 |
|
| 2318 |
## libtmux 0.10.2 (2021-10-30) |
| 2319 |
|
| 2320 |
libtmux 0.10.2 updates Poetry-era CI and attached-session handling. |
| 2321 |
|
| 2322 |
### Fixes |
| 2323 |
|
| 2324 |
#### Multiple attached sessions are supported (#341, #342) |
| 2325 |
|
| 2326 |
`Server.attached_sessions()` no longer assumes only one attached client. Thanks |
| 2327 |
@timoses. |
| 2328 |
|
| 2329 |
### Development |
| 2330 |
|
| 2331 |
#### Poetry 1.1 tooling was refreshed (#324, #339) |
| 2332 |
|
| 2333 |
CI uses Poetry 1.1.7, Python was locked at 3.9 to avoid the `dataclasses` |
| 2334 |
issue, and docs publishing was repaired. |
| 2335 |
|
| 2336 |
## libtmux 0.10.1 (2021-06-16) |
| 2337 |
|
| 2338 |
libtmux 0.10.1 updates a window-selection compatibility path. |
| 2339 |
|
| 2340 |
### Fixes |
| 2341 |
|
| 2342 |
#### `Window.select_window()` was updated for #271 |
| 2343 |
|
| 2344 |
The compatibility method picked up the session-target fix. |
| 2345 |
|
| 2346 |
## libtmux 0.10.0 (2021-06-16) |
| 2347 |
|
| 2348 |
libtmux 0.10.0 moves the changelog to Markdown, fixes window selection, and |
| 2349 |
drops Python 3.5. |
| 2350 |
|
| 2351 |
### Breaking changes |
| 2352 |
|
| 2353 |
#### Python 3.5 support was dropped |
| 2354 |
|
| 2355 |
The supported Python range moved forward. |
| 2356 |
|
| 2357 |
### Fixes |
| 2358 |
|
| 2359 |
#### `select_window()` targets the session ID (#271) |
| 2360 |
|
| 2361 |
Window selection now passes the session ID to tmux's `-t` argument. Thanks |
| 2362 |
@Flowdalic. |
| 2363 |
|
| 2364 |
### Documentation |
| 2365 |
|
| 2366 |
#### CHANGES was converted to Markdown (#321) |
| 2367 |
|
| 2368 |
The changelog moved from reStructuredText to Markdown. |
| 2369 |
|
| 2370 |
## libtmux 0.9.0 (2021-06-14) |
| 2371 |
|
| 2372 |
libtmux 0.9.0 drops Python 2.7 and updates the Python 3 toolchain. |
| 2373 |
|
| 2374 |
### Breaking changes |
| 2375 |
|
| 2376 |
#### Python 2.7 support was dropped (#306) |
| 2377 |
|
| 2378 |
The codebase moved fully to Python 3 syntax. The CI matrix added tmux 3.2a, and |
| 2379 |
Black moved to 21.6b0 (#312, #314). |
| 2380 |
|
| 2381 |
### Fixes |
| 2382 |
|
| 2383 |
#### `select_window()` targets the session ID (#271) |
| 2384 |
|
| 2385 |
The session-target fix also appears in this release line. |
| 2386 |
|
| 2387 |
## libtmux 0.8.5 (2020-10-25) |
| 2388 |
|
| 2389 |
libtmux 0.8.5 improves subprocess interaction, version reporting, and |
| 2390 |
environment tests. |
| 2391 |
|
| 2392 |
### What's new |
| 2393 |
|
| 2394 |
#### Subprocess pipes handle large buffers better (#297) |
| 2395 |
|
| 2396 |
stdin/stdout/stderr handling was improved for large buffer interaction, fixing |
| 2397 |
#251. Thanks @gil-obradors. |
| 2398 |
|
| 2399 |
#### `get_libtmux_version()` reports tmux-compatible versions (#303) |
| 2400 |
|
| 2401 |
`common.get_libtmux_version` was added, docs links were repaired, and duplicate |
| 2402 |
Sphinx module descriptions were removed. |
| 2403 |
|
| 2404 |
### Fixes |
| 2405 |
|
| 2406 |
#### Environment tests no longer hang on local values (#266) |
| 2407 |
|
| 2408 |
Local environment variables no longer cause `show-environment` tests to pause |
| 2409 |
indefinitely. |
| 2410 |
|
| 2411 |
## libtmux 0.8.4 (2020-10-25) |
| 2412 |
|
| 2413 |
libtmux 0.8.4 updates split-window support, packaging, docs, and CI. |
| 2414 |
|
| 2415 |
### What's new |
| 2416 |
|
| 2417 |
#### `Window.split_window` accepts percentages (#234) |
| 2418 |
|
| 2419 |
`Window.split_window` can pass percentage sizing. Thanks @jinankjain. |
| 2420 |
|
| 2421 |
### Fixes |
| 2422 |
|
| 2423 |
#### Invalid escape warnings were fixed (#289) |
| 2424 |
|
| 2425 |
Warnings from invalid escape sequences were fixed. Thanks @tirkarthi. |
| 2426 |
|
| 2427 |
### Documentation |
| 2428 |
|
| 2429 |
#### Documentation moved to `docs/` (#295) |
| 2430 |
|
| 2431 |
Docs publishing moved to the project's own action, development instructions |
| 2432 |
were refreshed, and the old `doc/` tree moved to `docs/`. |
| 2433 |
|
| 2434 |
### Development |
| 2435 |
|
| 2436 |
#### Poetry and CI were expanded (#295, #296) |
| 2437 |
|
| 2438 |
More packaging moved to Poetry while retaining `setup.py`, and CI was updated |
| 2439 |
for Python 2.7 caching and internal PR behavior. |
| 2440 |
|
| 2441 |
## libtmux 0.8.3 (2020-08-16) |
| 2442 |
|
| 2443 |
libtmux 0.8.3 is a Python warning, packaging, and CI cleanup release. |
| 2444 |
|
| 2445 |
### Fixes |
| 2446 |
|
| 2447 |
#### Python deprecation warnings were fixed (#278) |
| 2448 |
|
| 2449 |
Deprecation warnings were cleaned up. Thanks @d1618033 and Flowdalic. |
| 2450 |
|
| 2451 |
### Development |
| 2452 |
|
| 2453 |
#### Packaging and CI moved forward (#293) |
| 2454 |
|
| 2455 |
`project_urls` were added, the project moved from Pipfile to Poetry, tmux 3.0 |
| 2456 |
option tests were fixed, option-error comments were cleaned up, and CI moved to |
| 2457 |
GitHub Actions. |
| 2458 |
|
| 2459 |
## libtmux 0.8.2 (2019-06-02) |
| 2460 |
|
| 2461 |
libtmux 0.8.2 is a packaging and changelog-format release. |
| 2462 |
|
| 2463 |
### Documentation |
| 2464 |
|
| 2465 |
#### CHANGES used plain reStructuredText |
| 2466 |
|
| 2467 |
The changelog was converted to plain reStructuredText. |
| 2468 |
|
| 2469 |
### Development |
| 2470 |
|
| 2471 |
#### PyPI metadata and Pipfile constraints were updated |
| 2472 |
|
| 2473 |
`project_urls` were added to `setup.py`, Pipfile constraints were loosened, and |
| 2474 |
`Pipfile.lock` was added. |
| 2475 |
|
| 2476 |
## libtmux 0.8.1 (2019-01-26) |
| 2477 |
|
| 2478 |
libtmux 0.8.1 fixes several tmux compatibility gaps and moves docs toward |
| 2479 |
NumPy-style docstrings. |
| 2480 |
|
| 2481 |
### What's new |
| 2482 |
|
| 2483 |
#### Pane capture, display, and literal key support landed (#119, #120, #121) |
| 2484 |
|
| 2485 |
{meth}`~libtmux.Pane.capture_pane`, |
| 2486 |
{meth}`~libtmux.Pane.display_message`, and `literal=True` support for |
| 2487 |
{meth}`~libtmux.Pane.send_keys` were added. Thanks @ritiek. |
| 2488 |
|
| 2489 |
### Fixes |
| 2490 |
|
| 2491 |
#### Client renaming works on tmux 2.7 BSD/macOS (#117) |
| 2492 |
|
| 2493 |
Renaming clients on BSD/macOS with tmux 2.7 was repaired. |
| 2494 |
|
| 2495 |
#### Unicode commands and next-version support improved (#131, #172) |
| 2496 |
|
| 2497 |
Unicode command handling was fixed for Python 2 thanks to @myw, and next-X.Y |
| 2498 |
version parsing gained support thanks to @sloria. |
| 2499 |
|
| 2500 |
### Documentation |
| 2501 |
|
| 2502 |
#### Docs moved to NumPy-style docstrings |
| 2503 |
|
| 2504 |
Imports were sorted, sphinxcontrib-napoleon was added, and docstrings moved to |
| 2505 |
NumPy style. |
| 2506 |
|
| 2507 |
## libtmux 0.8.0 (2018-03-11) |
| 2508 |
|
| 2509 |
libtmux 0.8.0 moves the project to the tmux-python organization and broadens |
| 2510 |
session-start support. |
| 2511 |
|
| 2512 |
### Breaking changes |
| 2513 |
|
| 2514 |
#### License and organization changed (#46) |
| 2515 |
|
| 2516 |
The license changed from BSD to MIT, and the project moved into the |
| 2517 |
tmux-python organization. |
| 2518 |
|
| 2519 |
### What's new |
| 2520 |
|
| 2521 |
#### `Server.new_session()` can run commands at startup (#103) |
| 2522 |
|
| 2523 |
{meth}`~libtmux.Server.new_session` learned how to run commands in the new |
| 2524 |
window on session start. Thanks @grimpy. |
| 2525 |
|
| 2526 |
### Fixes |
| 2527 |
|
| 2528 |
#### `Server.has_session()` uses tmux return codes (#68) |
| 2529 |
|
| 2530 |
{meth}`~libtmux.Server.has_session` became more robust by checking tmux's return |
| 2531 |
code. Thanks @jlargentaye. |
| 2532 |
|
| 2533 |
### Development |
| 2534 |
|
| 2535 |
#### Dependencies and CI were refreshed |
| 2536 |
|
| 2537 |
pytest, Sphinx, Travis, PyPy, and supported Python versions were updated. |
| 2538 |
|
| 2539 |
## libtmux 0.7.8 (2018-03-04) |
| 2540 |
|
| 2541 |
libtmux 0.7.8 ports tmuxp retry support. |
| 2542 |
|
| 2543 |
### What's new |
| 2544 |
|
| 2545 |
#### `retry` moved in from tmuxp |
| 2546 |
|
| 2547 |
The retry helper was ported from tmuxp for shared behavior. |
| 2548 |
|
| 2549 |
## libtmux 0.7.7 (2017-11-10) |
| 2550 |
|
| 2551 |
libtmux 0.7.7 fixes tmux 2.6 session sizing from inside clients. |
| 2552 |
|
| 2553 |
### Fixes |
| 2554 |
|
| 2555 |
#### tmux 2.6 no longer receives unsupported `-x` / `-y` |
| 2556 |
|
| 2557 |
libtmux avoids those flags when running from inside a client on tmux 2.6+. |
| 2558 |
|
| 2559 |
## libtmux 0.7.6 (2017-11-09) |
| 2560 |
|
| 2561 |
libtmux 0.7.6 repairs layout selection and option ambiguity tests. |
| 2562 |
|
| 2563 |
### Fixes |
| 2564 |
|
| 2565 |
#### `Window.select_layout` can be called without arguments |
| 2566 |
|
| 2567 |
The layout-selection helper accepts the tmux default path again, and tests were |
| 2568 |
updated for tmux 2.6 option ambiguity behavior. |
| 2569 |
|
| 2570 |
## libtmux 0.7.5 (2017-10-07) |
| 2571 |
|
| 2572 |
libtmux 0.7.5 is a tmux 2.6 hotfix. |
| 2573 |
|
| 2574 |
### Fixes |
| 2575 |
|
| 2576 |
#### tmux 2.6 session creation works |
| 2577 |
|
| 2578 |
Session creation was patched for tmux 2.6 compatibility. |
| 2579 |
|
| 2580 |
## libtmux 0.7.4 (2017-08-19) |
| 2581 |
|
| 2582 |
libtmux 0.7.4 fixes command targeting. |
| 2583 |
|
| 2584 |
### Fixes |
| 2585 |
|
| 2586 |
#### Commands include session IDs (#65) |
| 2587 |
|
| 2588 |
tmux commands now include the relevant session id. Thanks @askedrelic. |
| 2589 |
|
| 2590 |
## libtmux 0.7.3 (2017-05-29) |
| 2591 |
|
| 2592 |
libtmux 0.7.3 records exact-match support limits. |
| 2593 |
|
| 2594 |
### Compatibility |
| 2595 |
|
| 2596 |
#### Exact matches require tmux 2.1+ |
| 2597 |
|
| 2598 |
Exact matching is only supported on tmux 2.1 and later. |
| 2599 |
|
| 2600 |
## libtmux 0.7.2 (2017-05-29) |
| 2601 |
|
| 2602 |
libtmux 0.7.2 adds exact matching to session lookup. |
| 2603 |
|
| 2604 |
### What's new |
| 2605 |
|
| 2606 |
#### `Server.has_session` supports exact matching |
| 2607 |
|
| 2608 |
{meth}`~libtmux.Server.has_session` can check for exact session names. |
| 2609 |
|
| 2610 |
## libtmux 0.7.1 (2017-04-28) |
| 2611 |
|
| 2612 |
libtmux 0.7.1 improves formatted option handling. |
| 2613 |
|
| 2614 |
### Fixes |
| 2615 |
|
| 2616 |
#### Formatted options such as `pane-border-status` are supported (#37) |
| 2617 |
|
| 2618 |
Option parsing works better for formatted tmux options. Thanks @kaushalmodi. |
| 2619 |
|
| 2620 |
## libtmux 0.7.0 (2017-04-27) |
| 2621 |
|
| 2622 |
libtmux 0.7.0 drops Python 2.6, adds tmux 2.4 support, and overhauls option |
| 2623 |
errors and version checks. |
| 2624 |
|
| 2625 |
### Breaking changes |
| 2626 |
|
| 2627 |
#### Python 2.6 support was dropped |
| 2628 |
|
| 2629 |
Python 2.7 became the minimum supported Python version. |
| 2630 |
|
| 2631 |
#### Version helper names changed |
| 2632 |
|
| 2633 |
`has_version` was renamed to `get_version`, |
| 2634 |
`has_required_tmux_version` was renamed to `has_minimum_version`, and |
| 2635 |
comparison helpers such as `has_gt_version`, `has_gte_version`, |
| 2636 |
`has_lt_version`, and `has_lte_version` were added. |
| 2637 |
|
| 2638 |
### What's new |
| 2639 |
|
| 2640 |
#### Option errors have a dedicated hierarchy |
| 2641 |
|
| 2642 |
{exc}`libtmux.exc.OptionError` became the base class for |
| 2643 |
{exc}`libtmux.exc.InvalidOption`, `libtmux.exc.AmbiguousOption`, and |
| 2644 |
{exc}`libtmux.exc.UnknownOption`. |
| 2645 |
|
| 2646 |
#### tmux master and OpenBSD versions are represented explicitly |
| 2647 |
|
| 2648 |
`get_version` reports tmux built from master with a `-master` suffix and OpenBSD |
| 2649 |
base tmux with an `-openbsd` suffix. |
| 2650 |
|
| 2651 |
### Documentation |
| 2652 |
|
| 2653 |
#### Session method docs were improved |
| 2654 |
|
| 2655 |
Session documentation and option-method exception details were cleaned up. |
| 2656 |
|
| 2657 |
### Development |
| 2658 |
|
| 2659 |
#### tmux 2.4, PyPy, and version bounds were added |
| 2660 |
|
| 2661 |
The release added support for tmux 2.4, PyPy/PyPy3, |
| 2662 |
`TMUX_MIN_VERSION`, and `TMUX_MAX_VERSION`. |
| 2663 |
|
| 2664 |
## libtmux 0.6.5 (2017-04-02) |
| 2665 |
|
| 2666 |
libtmux 0.6.5 improves tmux binary lookup. |
| 2667 |
|
| 2668 |
### What's new |
| 2669 |
|
| 2670 |
#### `tmux_cmd` can search custom paths |
| 2671 |
|
| 2672 |
`tmux_search_paths` and `append_env_path` were added, and |
| 2673 |
{exc}`~libtmux.exc.TmuxCommandNotFound` reports missing tmux executables. |
| 2674 |
|
| 2675 |
## libtmux 0.6.4 (2017-03-25) |
| 2676 |
|
| 2677 |
libtmux 0.6.4 adds OpenBSD tmux support. |
| 2678 |
|
| 2679 |
### Compatibility |
| 2680 |
|
| 2681 |
#### OpenBSD tmux is supported (#32) |
| 2682 |
|
| 2683 |
The version and command handling paths now account for OpenBSD tmux. |
| 2684 |
|
| 2685 |
## libtmux 0.6.3 (2017-02-08) |
| 2686 |
|
| 2687 |
libtmux 0.6.3 supports tmux built from master. |
| 2688 |
|
| 2689 |
### Compatibility |
| 2690 |
|
| 2691 |
#### tmux master builds are recognized (#25) |
| 2692 |
|
| 2693 |
Version handling supports tmux built from unreleased master. Thanks @sloria. |
| 2694 |
|
| 2695 |
## libtmux 0.6.2 (2017-01-19) |
| 2696 |
|
| 2697 |
libtmux 0.6.2 relaxes version parsing and updates packaging. |
| 2698 |
|
| 2699 |
### Fixes |
| 2700 |
|
| 2701 |
#### Loose version parsing handles more tmux versions (#197) |
| 2702 |
|
| 2703 |
`LooseVersion` replaced `StrictVersion` for tmux version checks. Thanks |
| 2704 |
@minijackson. |
| 2705 |
|
| 2706 |
### Documentation |
| 2707 |
|
| 2708 |
#### README fixes landed (#21) |
| 2709 |
|
| 2710 |
The README was corrected. Thanks @huwenchao. |
| 2711 |
|
| 2712 |
### Development |
| 2713 |
|
| 2714 |
#### Package pins were maintained with pyup.io |
| 2715 |
|
| 2716 |
Dependency pin maintenance moved through pyup.io. |
| 2717 |
|
| 2718 |
## libtmux 0.6.1 (2016-12-20) |
| 2719 |
|
| 2720 |
libtmux 0.6.1 fixes logging, start directories, and tmux 2.3 support. |
| 2721 |
|
| 2722 |
### What's new |
| 2723 |
|
| 2724 |
#### start directories are supported for sessions and panes (#19) |
| 2725 |
|
| 2726 |
New sessions and panes can receive `start_directory`. Thanks @gandelman-a. |
| 2727 |
|
| 2728 |
### Fixes |
| 2729 |
|
| 2730 |
#### Logger behavior was repaired (#18) |
| 2731 |
|
| 2732 |
Logging was fixed thanks to @geekli. |
| 2733 |
|
| 2734 |
### Development |
| 2735 |
|
| 2736 |
#### tmux 2.3 is officially supported |
| 2737 |
|
| 2738 |
Tests were fixed and tmux 2.3 support was added. |
| 2739 |
|
| 2740 |
## libtmux 0.6.0 (2016-09-16) |
| 2741 |
|
| 2742 |
libtmux 0.6.0 validates session names and trims unused attachment parameters. |
| 2743 |
|
| 2744 |
### Fixes |
| 2745 |
|
| 2746 |
#### Invalid session names raise errors |
| 2747 |
|
| 2748 |
tmux session names cannot be empty or contain periods or colons; libtmux now |
| 2749 |
raises for those invalid names. |
| 2750 |
|
| 2751 |
### Development |
| 2752 |
|
| 2753 |
#### Unused attach/switch parameters were removed |
| 2754 |
|
| 2755 |
Unused `target_session` parameters were removed from `Server.attach_session` and |
| 2756 |
`Server.switch_client`. |
| 2757 |
|
| 2758 |
## libtmux 0.5.1 (2016-08-18) |
| 2759 |
|
| 2760 |
libtmux 0.5.1 fixes missing-tmux logging. |
| 2761 |
|
| 2762 |
### Fixes |
| 2763 |
|
| 2764 |
#### Missing tmux in `PATH` logs clearly (#12) |
| 2765 |
|
| 2766 |
The logger message for a missing tmux executable was corrected. |
| 2767 |
|
| 2768 |
## libtmux 0.5 (2016-06-15) |
| 2769 |
|
| 2770 |
libtmux 0.5 improves option errors and documentation. |
| 2771 |
|
| 2772 |
### What's new |
| 2773 |
|
| 2774 |
#### Unknown options and unset valid options are distinct (#8) |
| 2775 |
|
| 2776 |
{exc}`libtmux.exc.UnknownOption` was added, and valid-but-unset options now |
| 2777 |
return `None`. |
| 2778 |
|
| 2779 |
### Documentation |
| 2780 |
|
| 2781 |
#### Major documentation overhaul (#6) |
| 2782 |
|
| 2783 |
The documentation was substantially refreshed. |
| 2784 |
|
| 2785 |
## libtmux 0.4.1 (2016-05-23) |
| 2786 |
|
| 2787 |
libtmux 0.4.1 fixes tmux discovery through `PATH`. |
| 2788 |
|
| 2789 |
### Fixes |
| 2790 |
|
| 2791 |
#### `which()` reads `PATH` |
| 2792 |
|
| 2793 |
tmux lookup now uses `os.environ["PATH"]`. See <https://redd.it/4laeut>. |
| 2794 |
|
| 2795 |
## libtmux 0.4.0 (2016-05-23) |
| 2796 |
|
| 2797 |
libtmux 0.4.0 makes tmux format metadata available as object attributes. |
| 2798 |
|
| 2799 |
### Breaking changes |
| 2800 |
|
| 2801 |
#### `_TMUX` metadata became `_info` |
| 2802 |
|
| 2803 |
The internal metadata object was renamed. |
| 2804 |
|
| 2805 |
### What's new |
| 2806 |
|
| 2807 |
#### Session, Window, and Pane expose format fields as attributes |
| 2808 |
|
| 2809 |
Format-backed properties such as `session.name`, `window.name`, |
| 2810 |
`pane.current_path`, `session.id`, `window.id`, `pane.id`, `session.index`, |
| 2811 |
`window.index`, and `pane.index` are available directly. Attached-session, |
| 2812 |
window, and pane relationships also became properties. |
| 2813 |
|
| 2814 |
### Development |
| 2815 |
|
| 2816 |
#### `findWhere()` became `find_where` |
| 2817 |
|
| 2818 |
The old camelCase lookup helper was renamed, and README usage was updated. |
| 2819 |
|
| 2820 |
## libtmux 0.3.0 (2016-05-23) |
| 2821 |
|
| 2822 |
libtmux 0.3.0 switches the project test runner. |
| 2823 |
|
| 2824 |
### Development |
| 2825 |
|
| 2826 |
#### pytest became the test runner |
| 2827 |
|
| 2828 |
The project moved to pytest. |
| 2829 |
|
| 2830 |
## libtmux 0.1.0 (2016-05-22) |
| 2831 |
|
| 2832 |
libtmux 0.1.0 is the initial standalone libtmux release. |
| 2833 |
|
| 2834 |
### What's new |
| 2835 |
|
| 2836 |
#### libtmux forked from tmuxp |
| 2837 |
|
| 2838 |
The library began as a fork from [tmuxp]. |
| 2839 |
|
| 2840 |
[tmuxp]: https://github.com/tmux-python/tmuxp |
| 2841 |
[@askedrelic]: https://github.com/askedrelic |
| 2842 |
|
| 2843 |
<!--- |
| 2844 |
# vim: set filetype=markdown: |
| 2845 |
--> |