Skip to content

Releases: tmux-python/libtmux

v0.31.0 - Command overhaul, renamings

17 Feb 13:09
Compare
Choose a tag to compare

Cleanups (#527)

  • Streamline {Server,Session,Window,Pane}.cmd(), across all usages to:

    • Use cmd: str as first positional
    • Removed unused keyword arguments **kwargs

Renamings (#527)

Improvements (#527)

  • Server.attached_windows now users QueryList’s .filter()

Full Changelog: v0.30.2...v0.31.0

v0.30.2: Bump `TMUX_MAX_VERSION`

16 Feb 22:13
Compare
Choose a tag to compare
  • TMUX_MAX_VERSION: 3.3 -> 3.4

Full Changelog: v0.30.1...v0.30.2

v0.30.1 - pytest plugin renamings

16 Feb 21:07
Compare
Choose a tag to compare
  • pytest plugin, test module: Update to renamed methods introduced in v0.30.0

Full Changelog: v0.30.0...v0.30.1

v0.30.0 - Improved commands

16 Feb 20:36
Compare
Choose a tag to compare

New and improved commands

by @tony in #525

New commands

  • Pane.kill()

Renamed commands

  • Window.select_window() renamed to Window.select()
    • Deprecated Window.select_window()
  • Pane.select_pane() renamed to Pane.select()
    • Deprecated Pane.pane_select()
  • Session.attach_session() renamed to Session.attach()
    • Deprecated Session.attach_session()
  • Server.kill_server() renamed to Server.kill()
    • Deprecated Server.kill_server()
  • Session.kill_session() renamed to Session.kill()
    • Deprecated Session.kill_session()
  • Window.kill_window() renamed to Window.kill()
    • Deprecated Window.kill_window()

Improved commands

  • Server.new_session(): Support environment variables

  • Window.split_window(): Support size via -l

    Supports columns/rows (size=10) and percentage (size='10%')

Full Changelog: v0.29.0...v0.30.0

v0.29.0 - `DeprecationWarning` improvements

16 Feb 17:44
Compare
Choose a tag to compare

Develpment

  • fix(warnings): Use DeprecationWarning for APIs being deprecated by @tony in #526

Testing

  • pytest: Ignore DeprecationWarning in tests @tony in #526

Full Changelog: v0.28.1...v0.29.0

v0.28.1 - Maintenance release

15 Feb 14:20
Compare
Choose a tag to compare

Maintenance only, no bug fixes or new features

Testing

  • CI: Bump actions to node 20+ versions

Documentation

  • Refine docs and add migration for v0.28.0

Full Changelog: v0.28.0...v0.28.1

v0.28.0 - Refresh and resize improvements

15 Feb 01:20
Compare
Choose a tag to compare

Breaking changes

Session.new_window() + Window.split_window(): No longer attaches by default

  • 0.28 +: Now defaults to attach=False.
  • 0.27.1 and before: defaults to attach=True.

Pass attach=True for the old behavior.

Pane.resize_pane() renamed to Pane.resize(): (#523)

This convention will be more consistent with Window.resize().

Pane.resize_pane(): Params changed (#523)

  • No longer accepts -U, -D, -L, -R directly, instead accepts
    ResizeAdjustmentDirection.

New features

Pane.resize(): Improved param coverage (#523)

  • Learned to accept adjustments via adjustment_direction w/
    ResizeAdjustmentDirection + adjustment.

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

  • Zoom (and unzoom)

Window.resize_window(): New Method (#523)

If Pane.resize_pane() (now Pane.resize()) didn't work before, try resizing the window.

Bug fixes

Window.refresh() and Pane.refresh(): Refresh more underlying state (#523)

Obj._refresh: Allow passing args (#523)

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

Server.panes: Fix listing of panes (#523)

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

Improvements

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

Full Changelog: v0.27.1...v0.28.0

v0.27.1 - Packaging tweak

08 Feb 12:34
Compare
Choose a tag to compare

What's Changed

  • pyproject: Include MIGRATION in sdist by @tony in #517, for #508

Full Changelog: v0.27.0...v0.27.1

v0.27.0 - `QueryList` improvements

07 Feb 15:47
Compare
Choose a tag to compare

Improvements

  • QueryList: Generic fixes by @tony in #515

    • This improves the annotations in descendant objects such as:

      • Server.sessions
      • Session.windows
      • Window.panes
    • Bolster tests (ported from libvcs): doctests and pytests

Full Changelog: v0.26.0...v0.27.0

v0.26.0 - Doc and linting improvements

06 Feb 17:22
Compare
Choose a tag to compare

What's Changed

Breaking change

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

Documentation

  • Various docstring fixes and tweaks (#514)

Development

CI

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

Full Changelog: v0.25.0...v0.26.0