Skip to content

Commit f88fd29

Browse files
committed
docs(CHANGES): Updates for #535
1 parent 12b4d39 commit f88fd29

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

CHANGES

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $ pip install --user --upgrade --pre libtmux
1717

1818
### Breaking changes
1919

20-
#### Command target change (#919)
20+
#### Command target change (#535)
2121

2222
Commands: All `cmd()` methods using custom or overridden targets must use the keyword argument
2323
`target`. This avoids entanglement with inner shell values that include `-t` for

MIGRATION

+18
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,24 @@ _Detailed migration steps for the next version will be posted here._
2525

2626
<!-- To the maintainers and contributors: please add migration details for the upcoming release here -->
2727

28+
## 0.35.0: Commands require explicit targets (2024-03-17)
29+
30+
### Commands require explicit targets (#535)
31+
32+
- {meth}`Server.cmd()`, {meth}`Session.cmd()`, {meth}`Window.cmd()`, {meth}`Pane.cmd()` require passing `target` instead of `['-t', target]`, `['-tTargetName']`, etc. This change is to avoid issues mistakenly interpretting `-t` in other shell values as targets.
33+
34+
Before:
35+
36+
```python
37+
session.cmd('send-keys', 'echo hello', '-t', '0')
38+
```
39+
40+
With 0.35.0 and after:
41+
42+
```python
43+
session.cmd('send-keys', 'echo hello', target='0')
44+
```
45+
2846
## 0.33.0: Deprecations for splitting (2024-03-03)
2947

3048
### Deprecations (#532)

0 commit comments

Comments
 (0)