From 2d25d58f8132c54ca0f853899d6b525c4ae892e4 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 21 Nov 2026 01:37:10 -0300 Subject: layers: the source view's painters a seam with nothing to see but one word: File.Layers (core/File.zig, beside recolorSyntax), a pane's field that each view keeps its own (views.zig pane_fields), says which painters a file's body wears and writes down their order and places (1 the ink, tree-sitter's colour a code cell; 2 the patch, a diff's grounds, marker and changed words; next, ruled and not built: changes, a lane after the line number, green and red grounds, a changed line's words, ghost rows; churn, a heat lane and a strip by the scroll thumb), both still painted in recolorSyntax's one walk; Syntax (a tag word, SPC t h: SPC t s is the pdf addon's PdfSections, a ctl line) turns the ink off in this view and on again; the ink off is no style byte read at all (a test a cell, as a branch or a mask, cost the frame 0.1 to 0.5% of its instructions, 0.15 to 0.47% on the long line; a walk specialised at comptime for each state cost 0.5 to 3.4%: the gate measured all three), so in a patch Syntax takes its grounds too; File.zig's test draws a .zig text's first row with the ink, without it, in a second view that keeps its own, and with it again; tui core-test 876/1034 (158 skipped); the tip's gate: frames 77/77, the 121 counts within 0.1% of tree3 (largest +0.026%), perfab -0.013% Co-Authored-By: Claude Opus Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T --- core/config.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'core/config.zig') diff --git a/core/config.zig b/core/config.zig index f43604ad..998063cc 100644 --- a/core/config.zig +++ b/core/config.zig @@ -121,6 +121,7 @@ pub const leader_path = paths: { .Msg = null, .Verbose = null, .Wrap = "tw", + .Syntax = "th", .NextColor = "tn", .Themes = "tt", .Theme = null, -- cgit v1.3