diff options
Diffstat (limited to 'core/root.zig')
| -rw-r--r-- | core/root.zig | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/core/root.zig b/core/root.zig index 09486906..c086e987 100644 --- a/core/root.zig +++ b/core/root.zig @@ -92,6 +92,7 @@ pub const keys = @import("keys.zig"); pub const bindings = @import("bindings.zig"); pub const TagState = @import("TagState.zig"); pub const Band = @import("Band.zig"); +pub const Pick = @import("Pick.zig"); pub const Prompt = @import("Prompt.zig"); pub const Addon = @import("Addon.zig"); pub const dump = @import("dump.zig"); @@ -143,11 +144,15 @@ pub const TagKind = Layer.Kind; /// too long for its width. pub const MAX_TAG_ROWS = 8; /// Panes, then columns, then the workspace bar, then each pane's notice -/// bands: a band to a tag, however many lines it has; then each pane's -/// rows unrolled under its tag (Band.zig). -pub const MAX_TAG_LAYERS = BAND_LAYER_BASE + MAX_PANES; -pub const NOTICE_LAYER_BASE = MAX_PANES + MAX_COLS + 1; -pub const BAND_LAYER_BASE = NOTICE_LAYER_BASE + MAX_PANES * Pane.Notices.max; +/// bands: a band to a tag, however many lines it has; then the rows +/// unrolled under the one tag out of rest (Band.zig: a view has one, the +/// keyboard's, SPEC ยง3.4). A frame makes many a temporary Surface, each +/// with every layer: a layer to a pane here cost every frame 0.9%. +pub const MAX_TAG_LAYERS = BAND_LAYER + 1; +/// The notice row's layer, after the workspace tag's. +pub const NOTICE_ROW_LAYER = MAX_PANES + MAX_COLS + 1; +pub const NOTICE_LAYER_BASE = MAX_PANES + MAX_COLS + 2; +pub const BAND_LAYER = NOTICE_LAYER_BASE + MAX_PANES * Pane.Notices.max; /// Columns a session holds (each costs about 8 KB of state, a column tag /// being most of it). pub const MAX_COLS = 16; @@ -415,6 +420,7 @@ test { _ = @import("bindings.zig"); _ = @import("TagState.zig"); _ = @import("Band.zig"); + _ = @import("Pick.zig"); _ = @import("Field.zig"); _ = @import("Prompt.zig"); _ = @import("Effect.zig"); @@ -636,7 +642,7 @@ const machine_lines = [_]struct { []const u8, usize, []const u8 }{ .{ "FrameStats.zig", 7, "a frame's clock and log: frames are local, never digested" }, .{ "Handover.zig", 29, "a window carried to another process over a socket: the session's host" }, .{ "Kind.zig", 1, "host_io's KindJob: a kind's job is the host's" }, - .{ "Messages.zig", 6, "the message clock, read through tape.value(.clock); PARDES_NOTIME, the tests', read by a host's `stamp` alone (between steps, or in a host's call), whose text the tape carries in the setMessage it makes: never a step's" }, + .{ "Messages.zig", 4, "PARDES_NOTIME, the tests', and the time of day, read by a host's `stamp` alone (between steps, or in a host's call), whose text the tape carries in the setMessage it makes: never a step's" }, .{ "Output.zig", 2, "the fonts module (Fonts lists them under tape.site(.fonts)) and the build's version line" }, .{ "Stream.zig", 14, "the disk search's worker: it runs off the step and its batches are inputs" }, .{ "builtins.zig", 2, "Mount's probe (tape.site(.probe)) and Term's shell check (tape.site(.shell))" }, @@ -761,6 +767,7 @@ const kept_out = [_]struct { []const u8, []const u8, []const u8 }{ .{ "Core.zig", "shell_rows", "a terminal's rows as read here, swept at every update; the terminal's own digest covers its active area, not its history (Term.zig `calls`)" }, .{ "Core.zig", "diff_output locations_cache tty_filter_palette body_chrome", "caches of pure functions of their key (a text, a theme): a step finds what it would make; a query row's colours from them are out of its digest (locations.Row.digest), and what a step asks a worker to paint is never decided by them (Stream.paintRows)" }, .{ "Core.zig", "retired_panes", "panes torn down this step, freed at its end" }, + .{ "Core.zig", "theme_preview preview_chrome", "a themes picker's preview (colors.previewTheme): made from the live picker's cursor, in the digest with it, after every step (Pick.produceAll) and gone at its roll-up; a step reading a theme meanwhile reads the one its own state previews" }, .{ "Core.zig", "multi_first multi_stop multi_index multi_count exec_depth exec_column", "a step's own: set by a key's replay across the ranges (normal.replaySels) and a word's run (exec.zig), each put back before the step ends; between steps what `init` makes, so a load takes them as it makes them (a dump's said 2^30 ranges once: a yank sized its register by it)" }, .{ "Core.zig", "rects col_x col_w", "a view's geometry: the layout pass's (layout.compute) over its columns and screen, at every sync and resize, and at a load (dump.afterLoad); never read before it" }, .{ "Core.zig", "distrusted frames tape", "Options: the client's own list, its runner's statistics, its tape" }, @@ -768,6 +775,8 @@ const kept_out = [_]struct { []const u8, []const u8, []const u8 }{ .{ "panes.zig", "pv pv_known", "the views' shares as this process parks them (views.zig)" }, .{ "panes.zig", "wrap_line wrap_col wrap_pad wrap_n body_wrapped context_rows body_rows body_visible_rows context_row_limit geometry_key geometry_len top_skip", "File.geometry's, made by whoever asks first (a frame or a step) from everything its key hashes of the step's state (the tab's width too); top_skip, keyed by the geometry it is of, read only through File.topSkip, which walks one of another key again" }, .{ "panes.zig views.zig", "notices", "made again from the step's state at the top of update and presented, and at sync (Messages.collectNotices); a frame's are its own" }, + .{ "panes.zig", "ghost_at", "where a message's detail is drawn under the caret's line (Messages.detailUnder), made again from the step's state with the notices (Messages.collectNotices: at the top of update, presented, sync, place); a frame's are its own" }, + .{ "panes.zig", "ghost_rows", "the detail's rows there, made again with ghost_at" }, .{ "panes.zig views.zig", "band_rows", "the band's rows under a tag (Band.takes), made again from the view's tag state at every sync before anything reads them (layout.floorRows reads the last sync's, as it reads tag_rows)" }, .{ "panes.zig views.zig", "pan", "written by steps only (sync, a view unparked) from the pane and its terminal" }, .{ "File.zig", "cap line_starts line_cap widest", "the text's line index, of its bytes, and the widest line it found (an upper bound: which walk answers, never what)" }, |
