libtmux 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +108 -0
- data/README.md +270 -89
- data/lib/libtmux/capabilities.rb +105 -10
- data/lib/libtmux/capture.rb +6 -11
- data/lib/libtmux/control.rb +3 -0
- data/lib/libtmux/entity.rb +176 -3
- data/lib/libtmux/errors.rb +20 -1
- data/lib/libtmux/operations.rb +7 -0
- data/lib/libtmux/option_catalog.rb +54 -0
- data/lib/libtmux/options.rb +39 -11
- data/lib/libtmux/owned.rb +11 -0
- data/lib/libtmux/process.rb +40 -11
- data/lib/libtmux/program.rb +478 -0
- data/lib/libtmux/server.rb +182 -78
- data/lib/libtmux/terminal.rb +6 -1
- data/lib/libtmux/text_wait.rb +101 -0
- data/lib/libtmux/tmux_version.rb +24 -2
- data/lib/libtmux/version.rb +1 -1
- data/lib/libtmux.rb +6 -0
- data/libexec/program_child.rb +60 -0
- data/schema/option-catalog.json +1723 -0
- data/sig/control.rbs +2 -1
- data/sig/libtmux.rbs +81 -6
- data/sig/option_catalog.rbs +26 -0
- data/sig/program.rbs +47 -0
- data/sig/terminal.rbs +1 -0
- metadata +19 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 82b7f1a458a6a7b43a8b6520e292aeea8bd750587101b29ecf0d2c94cb9ee333
|
|
4
|
+
data.tar.gz: 38637e53ffc48f2ea65e30f621c1720d3fcfb924a17ce793f7626dc66b72b110
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb757ca2ed5253502fa97c767f18a10f09ccba0841cd7710cce3706650ee3cea5ca834267b6730772525504b8acec9623c86071f07154108ab6e1d3408146862
|
|
7
|
+
data.tar.gz: 780145d196842bab9657e9bca3946594cb475f08fd45b4ceb3cb40018a30fd4f5e4198298275bfc88de241d47e1de88800539c7222e358afdb386167ad2a45d9
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Notable changes to `libtmux`.
|
|
4
|
+
|
|
5
|
+
Releases are numbered `0.1.N`, and each release increments `N`. The API is not
|
|
6
|
+
settled: pin an exact version to avoid a break.
|
|
7
|
+
|
|
8
|
+
The gems are released together at one version, so every release has a section
|
|
9
|
+
here. Changes that span gems, such as documentation, CI and release tooling, are
|
|
10
|
+
in the [main changelog](../../CHANGELOG.md).
|
|
11
|
+
|
|
12
|
+
## 0.1.4 (unreleased)
|
|
13
|
+
|
|
14
|
+
## 0.1.3 (2026-12-05)
|
|
15
|
+
|
|
16
|
+
- `CommandError` includes the command and the first printable line of tmux's
|
|
17
|
+
error. The exception still carries the full native result. (#173)
|
|
18
|
+
- Typed option reads and writes accept dotted or colon-separated user keys on
|
|
19
|
+
tmux 3.7. The session guide shows how to read the name stored by the daemon.
|
|
20
|
+
(#181)
|
|
21
|
+
- Option reads preserve literal asterisks and spaces in user option names
|
|
22
|
+
while reporting whether the value is inherited. (#182)
|
|
23
|
+
- OptionCatalog exposes the built-in option and hook definitions from tmux
|
|
24
|
+
3.8, including option types, ranges, choices and scopes. (#191)
|
|
25
|
+
- `Server#write_buffer` raises `UnsupportedFeatureError` for an empty payload
|
|
26
|
+
before sending it to tmux. Nonempty writes keep their existing behavior.
|
|
27
|
+
(#172)
|
|
28
|
+
- Session, window and pane creation can run the daemon's configured command or
|
|
29
|
+
shell. Omit the session or window name to let tmux choose it. (#186)
|
|
30
|
+
- `Server#list_windows` and `Server#list_panes` return empty collections when
|
|
31
|
+
their bound daemon is running without sessions. (#174)
|
|
32
|
+
|
|
33
|
+
## 0.1.2 (2026-11-04)
|
|
34
|
+
|
|
35
|
+
No entries for `libtmux`.
|
|
36
|
+
|
|
37
|
+
## 0.1.1 (2026-10-31)
|
|
38
|
+
|
|
39
|
+
- `Window#select_layout` accepts a JSON layout only on tmux 3.8 or newer, and
|
|
40
|
+
raw `select-layout`, including control lines, now refuses one below tmux 3.8
|
|
41
|
+
instead of sending it. The `UnsupportedFeatureError` names tmux 3.8 as the
|
|
42
|
+
minimum; upgrade tmux, or apply a checksummed layout. (#67)
|
|
43
|
+
- **Behavior change:** `Endpoint.new`, `Server.new` and `Server.open` no longer
|
|
44
|
+
need a socket. With no `socket_path:` or `socket_name:`, they pick the socket
|
|
45
|
+
tmux picks when it is given none: the path in `LIBTMUX_SOCKET_PATH`, else the
|
|
46
|
+
name in `LIBTMUX_SOCKET`, else the socket `TMUX` names inside tmux, else
|
|
47
|
+
tmux's default socket. They raised `ArgumentError` before. A program started
|
|
48
|
+
inside tmux that names no socket now reaches that tmux's server; pass
|
|
49
|
+
`socket_name:` or `socket_path:` to keep it off, as a test suite should.
|
|
50
|
+
`Endpoint.from_env` still follows `TMUX` alone. Two edge cases now match
|
|
51
|
+
tmux: an empty `TMUX_TMPDIR` means `/tmp`, where `Endpoint.new(socket_name:)`
|
|
52
|
+
raised, and `Endpoint.from_env` reads `TMUX_TMPDIR` only from the hash it is
|
|
53
|
+
given and ignores a `TMUX` that starts with a comma, where it raised. (#71)
|
|
54
|
+
|
|
55
|
+
## 0.1.0 (2026-10-25)
|
|
56
|
+
|
|
57
|
+
No entries for `libtmux`.
|
|
58
|
+
|
|
59
|
+
## 0.1.0.alpha.3 (2026-10-24)
|
|
60
|
+
|
|
61
|
+
### libtmux
|
|
62
|
+
|
|
63
|
+
- Refuse commands that misbehave on one tmux release before they run: named
|
|
64
|
+
buffer deletion and rename below 3.4, raw `break-pane` and colon or period
|
|
65
|
+
names on exact 3.7, raw `split-window -p` on 3.4, and malformed layouts below
|
|
66
|
+
3.4. `Pane#break_out` now works on exact 3.7 and for a sole pane. Refusals
|
|
67
|
+
raise `UnsupportedFeatureError`. (#37)
|
|
68
|
+
- Raw `refresh-client -l`, in `Server#run` or a control line, raises
|
|
69
|
+
`UnsupportedFeatureError` below tmux 3.6a. On 3.3a, asking an attached
|
|
70
|
+
terminal for its clipboard stops the server, and on 3.4 through 3.6 the
|
|
71
|
+
server stops when that client leaves before its terminal answers. (#37)
|
|
72
|
+
- Snapshots and the daemon identity check no longer fire `after-display-message`
|
|
73
|
+
hooks. (#37)
|
|
74
|
+
- Record every tmux release gate in one internal registry and emit it as the
|
|
75
|
+
root `capabilities.json` manifest, which the docs site reads for its
|
|
76
|
+
capability pages. `Window#select_layout` raises `UnsupportedFeatureError`,
|
|
77
|
+
not `ArgumentError`, for a JSON layout below tmux 3.8-rc2. (#37)
|
|
78
|
+
|
|
79
|
+
## 0.1.0.alpha.2 (2026-10-18)
|
|
80
|
+
|
|
81
|
+
### libtmux
|
|
82
|
+
|
|
83
|
+
- Run on tmux 3.8 and tmux master (`next-3.9`). Snapshots decode metadata
|
|
84
|
+
with line feeds, `select_layout` accepts the JSON layouts that 3.8-rc2 and
|
|
85
|
+
later report, and owned servers start on releases that log more at startup.
|
|
86
|
+
(#36)
|
|
87
|
+
- **Breaking:** `Server.new` now reads the daemon's tmux release and blocks
|
|
88
|
+
for up to `version_timeout:` seconds (default five), so a socket with no
|
|
89
|
+
daemon raises `TargetNotFoundError` at construction instead of at the first
|
|
90
|
+
command. Read the result with the new `Server#tmux_version`. (#36)
|
|
91
|
+
|
|
92
|
+
## 0.1.0.alpha.1 (2026-09-20)
|
|
93
|
+
|
|
94
|
+
### libtmux
|
|
95
|
+
|
|
96
|
+
- Create sessions, windows and panes; arrange layouts, send text or keys, and
|
|
97
|
+
capture output through Ruby handles. Manage options, hooks, environment
|
|
98
|
+
values and binary buffers. [Quick start](../../README.md#quick-start).
|
|
99
|
+
- Start a private tmux server with `LibTmux::Server.start`, or borrow an
|
|
100
|
+
existing socket with `Server.open`. Block exit cleans up owned clients;
|
|
101
|
+
borrowed daemons stay running. [Ownership](../../docs/ownership-errors.md).
|
|
102
|
+
- Query immutable snapshots with `where`, `select`, `one`, `one_or_nil` and
|
|
103
|
+
`Enumerable`, without further tmux calls. `WindowLink` addresses a window's
|
|
104
|
+
placement in a session, including repeated links to the same window.
|
|
105
|
+
[Queries](../../examples/list_filter.rb) · [Linked windows](../../examples/window_links.rb).
|
|
106
|
+
- Use command deadlines and cancellation tokens, or subscribe to bounded
|
|
107
|
+
control-mode events with explicit overflow and gap reporting.
|
|
108
|
+
[Execution modes](../../docs/modes.md).
|