diff options
Diffstat (limited to 'core/root.zig')
| -rw-r--r-- | core/root.zig | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/core/root.zig b/core/root.zig index 5c49a038..61c236ae 100644 --- a/core/root.zig +++ b/core/root.zig @@ -89,6 +89,10 @@ pub const Kind = @import("Kind.zig"); /// The terminal, as the core calls it (core/term/ behind it). 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 Pick = @import("Pick.zig"); pub const Addon = @import("Addon.zig"); pub const dump = @import("dump.zig"); pub const lsp = @import("lsp/lsp.zig"); @@ -114,6 +118,7 @@ pub const font_picker = platform == .gui or platform == .macos; pub var turn: Turn = .{}; pub const Turn = @import("Turn.zig"); pub const Jump = @import("Jump.zig"); +pub const Trail = @import("Trail.zig"); const Loc = Jump.Loc; pub const can_attach = platform == .tui or platform == .gui; @@ -138,11 +143,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. -pub const MAX_TAG_LAYERS = MAX_PANES + MAX_COLS + 2 + 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; @@ -405,7 +414,13 @@ test { _ = @import("Plumb.zig"); _ = @import("lsp/Ask.zig"); _ = @import("Jump.zig"); + _ = @import("Trail.zig"); _ = @import("keys.zig"); + _ = @import("bindings.zig"); + _ = @import("TagState.zig"); + _ = @import("Band.zig"); + _ = @import("Pick.zig"); + _ = @import("Field.zig"); _ = @import("Effect.zig"); _ = @import("tape.zig"); _ = @import("replica.zig"); @@ -757,6 +772,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)" }, |
