summaryrefslogtreecommitdiff
path: root/core/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/root.zig')
-rw-r--r--core/root.zig9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/root.zig b/core/root.zig
index e8938fd9..bdec2d49 100644
--- a/core/root.zig
+++ b/core/root.zig
@@ -91,6 +91,7 @@ pub const Term = @import("Term.zig");
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 Addon = @import("Addon.zig");
pub const dump = @import("dump.zig");
pub const lsp = @import("lsp/lsp.zig");
@@ -140,9 +141,11 @@ 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.
-pub const MAX_TAG_LAYERS = MAX_PANES + MAX_COLS + 1 + MAX_PANES * Pane.Notices.max;
+/// 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;
/// Columns a session holds (each costs about 8 KB of state, a column tag
/// being most of it).
pub const MAX_COLS = 16;
@@ -408,6 +411,7 @@ test {
_ = @import("keys.zig");
_ = @import("bindings.zig");
_ = @import("TagState.zig");
+ _ = @import("Band.zig");
_ = @import("Effect.zig");
_ = @import("tape.zig");
_ = @import("replica.zig");
@@ -759,6 +763,7 @@ 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 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)" },
.{ "File.zig", "highlights highlight_start syntax_dirty", "how a text looks, painted by frames: read by frames, and by a query's rows for colours only (out of their digest; what a step asks a worker to paint is never decided by them, Stream.paintRows)" },