Repository navigation
v0.15.0
.gtui format 10 (reads v1..v10). Crate 0.15.0.
Added
graph-tui tutoropens a walkthrough document built into the binary: 8 short chapters (welcome,
moving, finding, view, editing, building, styling, files) joined by arrows, plus a sandbox with a
text to edit, an empty box, two boxes to link, an edge and a point node. It is an ordinary
document in a scratch buffer -- edit it, break it,rit into another layout -- nothing is
written anywhere,:qleaves, and running the command again starts from the original. The
English document is compiled in fromassets/tutor.en.gtui; the tutorial itself is English-only
for now, while--langstill controls the app's own UI text. The subcommand takes no file
argument and refuses--dump/--export.
Fixed
-
w/bare a horizontal ray across the whole picture. The ray used to pick an axis from the
picture's proportions and give up as soon as it left the viewport, so on a wide picture it
printednothing ahead of the cursorand on a tall one it walked up the column and could never
reach a box hanging off to the side. It now goes right (w) / left (b) from the cursor's row
to the edge of the picture, stops at the first box or edge it meets, and scrolls the view there;
an edge counts as a stop wherever it is drawn (edges are measured inside the window only, so
beyond it the first box is the stop). When the row is empty -- a vertical stack, a table-like
layout -- it falls back to the nearest box in the forward half-plane (right or below) or the
backward one (left or above), measured to the box border, so a vertical column stays walkable and
a detached box (a legend, a note pinned to the left) is still reachable. Keys and directions are
unchanged. -
Dragging a box in a medium document no longer stalls: the port plan was recomputed for every
layer twice per frame (once in the routing pass, once in the inking pass), and its inner
candidate loop calledcontent_center-- and through ittext_metrics, which splits and
re-collects the label -- for every pair of candidate cells.content_centeris now computed once
per box and the plan once per layer per frame. Onlocal/llvm-tablegen.gtui(36 boxes, 35 edges)
a full frame drops from about 353 ms to about 4 ms, and--dumprenders in 10 ms instead of
330 ms. No picture changes: every example and that file dump byte-identically before and after.