Releases: tmux-python/libtmux
v0.17.0 - API Overhaul
API: Breaking changes (#426)
-
Finding objects / relations
-
0.16 and below:
session._windows()
,session.list_windows()
, etc.0.17 and after:
session.windows
-
0.16 and below:
session.find_where({'window_name': my_window})
0.17 and after:
session.windows.get(window_name=my_window, default=None)
-
If not found and not
default
, raisesObjectDoesNotExist
-
If multiple objects found, raises
MultipleObjectsReturned
-
-
0.16 and below:
session.where({'window_name': my_window})
0.17 and after:
session.windows.filter(window_name=my_window)
-
-
Accessing attributes
-
0.16 and below:
window['id']
0.17 and after:
window.id
-
0.16 and below:
window.get('id')
0.17 and after:
window.id
-
0.16 and below:
window.get('id', None)
0.17 and after:
getattr(window, 'id', None)
-
Improved server detection
The rest
Full Changelog: v0.16.1...v0.17.0
v0.17.0a1 - API Overhaul
API: Breaking changes (#426)
-
Finding objects / relations
-
0.16 and below:
session._windows()
,session.list_windows()
, etc.0.17 and after:
session.windows
-
0.16 and below:
session.find_where({'window_name': my_window})
0.17 and after:
session.windows.get(window_name=my_window, default=None)
-
If not found and not
default
, raisesObjectDoesNotExist
-
If multiple objects found, raises
MultipleObjectsReturned
-
-
0.16 and below:
session.where({'window_name': my_window})
0.17 and after:
session.windows.filter(window_name=my_window)
-
-
Accessing attributes
-
0.16 and below:
window['id']
0.17 and after:
window.id
-
0.16 and below:
window.get('id')
0.17 and after:
window.id
-
0.16 and below:
window.get('id', None)
0.17 and after:
getattr(window, 'id', None)
-
Full Changelog: v0.17.0a0...v0.17.0a1
v0.17.0a0 - Only prelease before API overhaul
What's Changed
Full Changelog: v0.16.1...v0.17.0a0
v0.16.1 - eliminate `packaging` dependnecy
v0.16.0 - Improved environment support, fix `distutils` deprecation warning
Features
- Feature: Allow setting up custom environment when creating windows and/or panes by @zappolowski in #453
Breaking internal change
Full Changelog: v0.15.10...v0.16.0
v0.16.0a1 - Fix `distutils` warning
What's fixed (breaking)
Full Changelog: v0.16.0a0...v0.16.0a1
v0.16.0a0 - Environmental variable passthrough
New feature
- Feature: allow setting up custom environment when creating windows and/or panes by @zappolowski in #453
Full Changelog: v0.15.10...v0.16.0a0
v0.15.10 - Maintenance only
There will be more improvements over the coming weeks and months to shore up flakiness across shells and environments.
Test improvements
- fix(test_capture_pane): use of double
env
by @zappolowski in #452 - test(test_capture_pane): Remove bashism(s) in #455
New Contributors
- @zappolowski made their first contribution in #452
Full Changelog: v0.15.9...v0.15.10
v0.15.9 - Bug fixes, packaging
v0.15.8 - Fix for empty `window_name: ''` on tmuxp
Bug fix for window names
-
Allow empty window name, e.g.
window_name: ''
in tmuxp by @trankchung in #444#445 may have follow up fixes / triaging info on empty strings
''
New Contributors
- @trankchung made their first contribution in #444
Full Changelog: v0.15.7...v0.15.8