diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-19 20:31:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-19 20:31:32 -0300 |
| commit | 0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (patch) | |
| tree | f2e288668decded9276ebc45907f16d651b06f9e /core/Event.zig | |
| parent | 2ab05b536bc3b063666b5aaab497157adc2a9120 (diff) | |
| parent | bf351b62e8843a3d173cedeefa2dd0b8ef4b4392 (diff) | |
| download | pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.tar.gz pardes-0db34fbf28e70c8c6a3c6025c0888fc5ec75201c.zip | |
integration: a pane's and a view's slot as types, with the regular-expression fixes and the fixes the real loops asked for: pardes-ids (Pane.Id and View.Id through the entries, the events, the effects, the Host table and the device messages) and pardes-merge21, merged without a textual conflict; one call site written since on the old type follows (core/draw.zig: the twin test's file_changed event, .pane = .at(0)); tui core-test 848/991 (143 skipped), shell-test 1027/1030, the window builds; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Event.zig')
| -rw-r--r-- | core/Event.zig | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/core/Event.zig b/core/Event.zig index faea73cc..9988eede 100644 --- a/core/Event.zig +++ b/core/Event.zig @@ -3,6 +3,7 @@ const config = @import("config.zig"); const selection_pipe = @import("selection_pipe.zig"); const Stream = @import("Stream.zig"); +const Pane = @import("panes.zig").Pane; const Layer = @import("Layer.zig"); const RowMetrics = Layer.Metrics; const TagHit = Layer.TagHit; @@ -78,14 +79,14 @@ pub const Event = union(enum) { cell_pixels: CellPixels = .{}, row_metrics: ?RowMetrics = null, }, - output: struct { pane: u8, bytes: []const u8 }, + output: struct { pane: Pane.Id, bytes: []const u8 }, /// The pane's pty reached end of file: its output is over. An /// interactive terminal closes; a command pane waits for `exited`. - eof: struct { pane: u8, status: ?u8 = null }, + eof: struct { pane: Pane.Id, status: ?u8 = null }, /// A command pane's child exited, with this status (null: unknown). It /// is the command's end, whatever still holds its pty (a job it left in /// the background prints on until end of file). - exited: struct { pane: u8, status: ?u8 }, + exited: struct { pane: Pane.Id, status: ?u8 }, lsp_resp: struct { id: u32, rows: ?[]const u8 }, pipe_resp: struct { id: u32, @@ -93,7 +94,7 @@ pub const Event = union(enum) { outputs: []const []const u8, failure: ?selection_pipe.Failure = null, }, - file_changed: struct { pane: u8, bytes: []const u8 }, + file_changed: struct { pane: Pane.Id, bytes: []const u8 }, /// A disk search's batch (Stream.zig), borrowed for the step. search: Stream.Batch, paste: []const u8, @@ -112,10 +113,10 @@ pub const Event = union(enum) { frontend: Frontend, /// What the host's `addon` effect read off a library, or why not /// (Addon.landed). Borrowed for the step. - addon: struct { op: @import("Addon.zig").Op, pane: u8, kind: *const @import("Kind.zig").Loaded }, + addon: struct { op: @import("Addon.zig").Op, pane: Pane.Id, kind: *const @import("Kind.zig").Loaded }, /// A kind's job answered (host_io.Job), at its kind's generation then. /// Borrowed for the step. - job: struct { pane: u8, serial: u32, token: u32, gen: u32, bytes: []const u8 }, + job: struct { pane: Pane.Id, serial: u32, token: u32, gen: u32, bytes: []const u8 }, tick, }; |
