Repository navigation
libtmux 0.64.0 is a fixes-only release. Commands act on the session, window or pane they were called on, values that start with - or end in ; reach tmux as data, and a newline in a pane's path no longer breaks listings. There are no breaking changes, so it is a safe version to pin.
Highlights
- Calls stay on their own object.
Window.select_pane(1)no longer changes another session's active pane (#896), andSession.kill_window("name")no longer kills a same-named window in another session (#897). - Values reach tmux as data. A value that starts with
-, such asrename_window("-n")orsend_keys("-n hello"), is no longer read as a flag (#892, #893). A value ending in;no longer runs the next argument as a tmux command:set_option("mouse;", "kill-server", global_=True)used to stop the server (#845). - Listings survive odd paths. A pane whose current directory contains a newline no longer makes
Server.panesandServer.windowsraiseValueErrorfor the whole server (#752). - Safer logs. Logged tmux command lines show
***in place of environment values (#898). retry_until()improvements. It passesargs=to the predicate and times its budget with a monotonic clock (#729).
Other fixes: send_keys(hex_keys=True) sends every byte (#894), refresh() clears a field tmux has emptied (#895), repr(Server()) names the socket tmux actually uses (#727), import libtmux works when sys.stdout has no encoding (#890), and subclasses of the lookup exceptions type-check (#891).
See the changelog for the full list.
What's Changed
- _compat(fix): Stop reading
sys.stdout.encodingat import by @tony in #890 - exc(fix[typing]): Accept forwarded kwargs in lookup errors by @tony in #891
- Bound the control-mode wait off the descriptor by @tony in #733
- Fix
retry_until's clock, and let it forward args by @tony in #729 - Automation patterns: wait for tmux instead of guessing by @tony in #734
- Resolve the socket path in Server's repr instead of hard-coding /tmp by @tony in #727
- Regroup listing records on the field separator, not newlines by @tony in #752
- neo(fix[refresh]): Clear fields tmux reports as empty by @tony in #895
- Window(fix[select_pane]): Select a pane index in this window by @tony in #896
- Session(fix[kill_window]): Kill a named window in this session by @tony in #897
- common(fix[logging]): Mask environment values in logged argv by @tony in #898
- tmux(fix[args]): Treat values that start with a dash as data by @tony in #893
- Pane(fix[send_keys]): Send text that starts with a dash by @tony in #892
- Pane(fix[send_keys]): Send each hex byte as its own argument by @tony in #894
- Pane(fix[send_keys]): Pass values ending in ; as data by @tony in #845
Full Changelog: v0.63.0...v0.64.0