summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* pdf: the test PDFs are files under test/pdf-fixtures, byte for byte what the ↵Gabriel Schneider13 days
| | | | | | | generators wrote, where pdf.zig wrote each object by object (139 lines fewer there): testFixture reads one, the two outlines sized by the bridge's limits stay generated, and the sections bench embeds its outline Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pdf: a render request crosses the bridge as one pardes_pdf_request, where ↵Gabriel Schneider13 days
| | | | | | | its six sizes were six arguments of each of the four calls (measure, render, highlight paint and rows) and of the geometry, each call checking them itself (pardes_pdf_request_ok now); boundedRequest makes the struct the Zig side passes Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* Messages: a clock's text is one function, Message.clockText(seconds, ↵Gabriel Schneider13 days
| | | | | | | gmtoff), which the message stamp (with localtime_r's offset) and the tape's guessed clock both call where each wrote its own, and PARDES_NOTIME is read in one place, Message.noTime, which lsp_client's hideTime asks Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pdf: searchRows prints each hit's row straight into the caller's buffer, ↵Gabriel Schneider13 days
| | | | | | | where it printed each (up to 512) into the arena and copied it over; a row that does not fit ends the list as it did, and look.zig no longer hands it an arena Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pdf: every by-value copy of a pane's PDF state (about 39 KB, its 256 raster ↵Gabriel Schneider13 days
| | | | | | | slots) taken to read a field or two is a pointer capture, in panes, edit, mouse, tagline, look, exec, the core, 9P ctl, fs, draw, macos and the sections bench; the hot one is pdf_view.moving, which Pardes.continuous asks on every pass of the shell loop and which copied every PDF pane's state each time Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* terminal: resizeGrid takes the pane and the size, where it took an allocator ↵Gabriel Schneider13 days
| | | | | | | too and threw it away (the emulator resizes with its state's own): the core's two calls (pardes.zig), the 9P pty's two and the kitty tests' two pass none Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* image: contain and its Fit, a wrapper over containGeometry kept for the ↵Gabriel Schneider13 days
| | | | | | | window built without MuPDF, are gone: gui.zig's two places there (nativePlaceDrawable, the native image instance) ask containGeometry, null exactly when the old size was zero, and the contain test asserts on it Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* image: the three renderer toggles (toggleGlyphArt, togglePalette, ↵Gabriel Schneider13 days
| | | | | | | toggleAscii, a line each) are the field flips at their one caller each, the Petscii, Palette and Ascii builtins, and the image tag test sets the fields it wants Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* terminal and pager: SGR's underline style becomes a cell's by a cast, where ↵Gabriel Schneider13 days
| | | | | | | two switches mapped one enum onto the same one; a comptime check in terminal.zig holds the two in one order (`off` the cell's `none`) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pdf_view.isPath goes, no caller but its own test (deleted: a dump brings a ↵Gabriel Schneider13 days
| | | | | | | PDF pane back by its state, never by its path's suffix), and Tables' closesAny is the fenceOf test it wrapped Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* Messages: a notice chip's width is worked out where collectNotices places ↵Gabriel Schneider13 days
| | | | | | | the chip, where noticeCols, called only there, took a Pardes it never read Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* terminal: create makes its State as one literal, every other field its ↵Gabriel Schneider13 days
| | | | | | | default, and create and a dump's load share State.wire (the stream over the emulator, its three effects, the PNG decoder) where each set them up field by field; mouseFormatSgr goes, one test's assertion its only reader; ptyDeviceAttrs returns ghostty's device_attributes.Attributes by name where a @typeInfo chain dug the type out, and it, ptyReport and ghostColor are the file's own Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pdf: max_raster_rows, store_limit_bytes and default_render_request go ↵Gabriel Schneider13 days
| | | | | | | (nothing read them but a test asserting two constants, deleted, and a test's `.{}`), pageText and boundedRequest check the page with checkedPage and boundedRequest clamps every size with clampInt where each wrote its own, and the test fixtures' pub wrappers are the generators under the wrappers' names Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* Output: hasFileSearch and resultsFrom go, nothing called either, and the ↵Gabriel Schneider13 days
| | | | | | | file's tests call decorateRow with no metadata where rowDecoration wrapped that call for them Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pdf: an outline entry is its depth, title and destination, where it also ↵Gabriel Schneider13 days
| | | | | | | carried is_open, flags and color (with isBold and isItalic) that nothing shows, the sections rows reading none of them; their assertions in pdf.zig's outline test, the literals' fields in test/panes.zig and the sections bench's checksum of them go, and the bridge still fills its C item Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* image: nativeGeometry's contain is containGeometry, where it repeated it ↵Gabriel Schneider13 days
| | | | | | | line for line Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pdf_view: a PDF's sections are rendered in one pass through an Allocating ↵Gabriel Schneider13 days
| | | | | | | writer (SectionRows.writeRows), where render counted every row and then wrote them into an exact allocation, cleanTitle with a null buffer as its counting mode; the rows are the same and a failure is still OutOfMemory Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pdf_view: the pane layer's one-caller wrappers are their callers ↵Gabriel Schneider13 days
| | | | | | | (pageAtViewportY in pageAtGridRow, nativeReady in paneNativeReady, pointAtPage in panePointAtPage, stepPanePage in verticalWheel, panPane in horizontalWheel, reloadPane in reloadWatched, pointAt's two callers ask panePointAtPage for the page they stand on), setPage and beginSelection go (only test/pdf.zig called them: it calls activatePage and beginDrag with true), and a pane's rect and id are Pardes.paneIdOf's where four loops searched for them; three copies of the whole PDF state taken to read a field go with them Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* terminal: a position that cannot follow a terminal's output for want of ↵Gabriel Schneider13 days
| | | | | | | memory is said through setMessage, logged, animated and taped as every other message is, where it was written straight into the pane's message row: ingestWithPositions answers whether a position was lost and feedOutput says so; a test provokes it with a failing allocator and fails without the fix Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* layout: four wrappers go to their callers: restoreMinima (ctl.zig's size ↵Gabriel Schneider13 days
| | | | | | | passes restoreMinimaFrom a null), splitRowForExtent (splitAt passes splitRowFor a null), attach (Query.zig and layout's tests pass attachFrom the owner as giver) and columnFitsHalves (exec.zig's first-document column checks the source column's width there) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* surface: a frame's images are a std.ArrayList(ImagePlace), where they were a ↵Gabriel Schneider13 days
| | | | | | | slice of optionals grown by hand (appendImagePlace's doubling realloc, nimages beside it) whose slots were never null: every reader's `orelse continue` and `.?` go (gui, tui, terminal, TerminalImages, ninep/screen, test/pdf.zig, kitty and the two PDF benches); macos.zig's loop the same, passing ast-check but not built here Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* memory: freeUnfilled, freeRaw for a slice of u8 written out again, goes; its ↵Gabriel Schneider13 days
| | | | | | | callers (File.zig's three, walk.zig's, memory.zig's tests) call freeRaw, and walk.zig's comments name it alone Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* effects: a pty write's bytes are one constant, effect_write_cap, where four ↵Gabriel Schneider13 days
| | | | | | | bare 64s spelled them, and it is 256: the union is sized by its 256-byte paths (268 bytes an effect at 64 and at 256, the ring 1097728 bytes either way, measured; a comptime check keeps a write from ever being its largest variant), so a paste or a terminal's answer takes a quarter of the effects and of the hosts' write syscalls; the four tests that overflow the ring paste 1.5 MiB where 300 KiB no longer filled it Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* sync: each pane's tag prefix is made once a step, on the 32 KiB stack buffer ↵Gabriel Schneider13 days
| | | | | | | its wrap already used, where it was made twice (once for its length in a second 8 KiB buffer, then again for the wrap: pathPrefix reads no cursor nor tag_lead, so both were the same bytes), and the wrap is one labelled block where it nested three `else |_| {}` Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* mouse.chromeTarget: its two passes, on the cell and a cell away, are one ↵Gabriel Schneider13 days
| | | | | | | loop over the distance, and a seam is seamRowOf, where it was spelled out twice; a test of what a press near chrome takes, which nothing pinned (web.zig's one caller), written and passing on the old code first Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* layout.keepColumn: whether a new column may stay, its narrower neighbours' ↵Gabriel Schneider13 days
| | | | | | | panes given back the rows their wrapped tags took or the column dropped, is one rule where Newcol and the finder each wrote the trial loop out; squeezed, which only that loop asked, is its body Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* Names.match takes its marks' table from dp_trace itself, where every caller ↵Gabriel Schneider13 days
| | | | | | | passed either it or null beside its marks, and is Names.zig's own; Finder.fold, whose receiver it discarded, is a plain function Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pardes.zig: a name being drafted says "name drafted" from one branch, at ↵Gabriel Schneider13 days
| | | | | | | p.active (the pane handleKey has), where two branches each looked the pane's slot up again to say it; dumpFailed's message buffer is declared once, not in each of its three branches Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* tests: the pty bytes a test drains are one test_api.ptyBytes (a pane's, or ↵Gabriel Schneider13 days
| | | | | | | every pane's for null), where pardes.zig's drainWrites and mouse.zig's ptyWrites each drained them Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* layout: movePlacement and movePane read each pane's rows off `rects` in a ↵Gabriel Schneider13 days
| | | | | | | line where each built them from the columns' lists in seven; splitBelow's snap of its column's weights is snapColWeights; canSplitColumn folds into splitColumn, which looked its source up twice (the Newcol test asks canSplitCol of the column) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* mouse: a header drag takes its point from headerPoint, as a press does, ↵Gabriel Schneider13 days
| | | | | | | where it worked the same offset out again line for line; reportGesture, a call of reportRange, is that call at its one caller; Pardes.reprojectBodyHit, which ignored its receiver, is Layer.bodyAgain where it was called; wordAtCol is wordBoundsAtCol sliced at its one caller; seamIdxAt is mouse.zig's own (events.zig's comment names reportRange) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* update: what a Look's hover outlives (a tick, a batch of rows, a move with ↵Gabriel Schneider13 days
| | | | | | | no button, a change to another pane) is one predicate, and cancelling it is written once, where six switch arms each wrote it Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* recent: the old `recent` file's import goes (List.read and Store.load's ↵Gabriel Schneider13 days
| | | | | | | branch for a store not made yet, the store in use since 2026-10-24), and with it List.write, the format's other half only its test used; closed takes the selection's anchor itself, closedSel its only caller's spelling; recent.zig's test reads a record back through parseLine, docs/next-store.md says the import went Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pardes.zig: five functions with one caller each are written where they are ↵Gabriel Schneider13 days
| | | | | | | called (makeParents and hostWriteFile in writeChecked, watchPath in perform's watch, quitEmpty in removePane, the Tab test's ctl read), their comments kept Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* teardown loops written out three and six times are one inline for each ↵Gabriel Schneider13 days
| | | | | | | (Pardes.deinit over the panes and the two generations of retired ones, memory.deinit over the six arenas), and Pages.giveBack, whose one caller passed it 0 and `top`, is trim's own body Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* unused imports and re-exports go: panes.zig's fourteen (vaxis, layout, ↵Gabriel Schneider13 days
| | | | | | | Pardes, fs, syntax, tracy, builtins, effect_sources, pardes_config, lsp, image, look, locations, Key), Names.zig's three, Finder.zig's panes, pardes.zig's uucode, vaxis and max_column_weight, and its body_layer, native_theme_count, AsciiDiff and theme_animation re-exports, which nothing reads; `platform` is the build option itself, not a hand copy of its enum Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* pardes.zig: twelve stale section markers from before the split into files go ↵Gabriel Schneider13 days
| | | | | | | (most had nothing under them), and six doc comments move to the declarations they describe (Messages' entry points, recentDot, invalidate, sync, answerQuestion's merged with its first copy over questionChoices, keyboardColumn's copy over reportFocus dropped); comments only Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* sync: a terminal's answers to its program (a cursor report, its attributes) ↵Gabriel Schneider13 days
| | | | | | | and a new shell's greeting go through emitWrite, behind whatever is still queued for its pty, where they were emitted past the parked bytes (a reply jumped a paste) and dropped with the ring full; a test that a reply waits behind a parked paste, which fails on the old loop at byte 262080 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* placement under Tagbottom: a look from a pane's text goes under its text ↵Gabriel Schneider13 days
| | | | | | | with every line of it in sight above its tag (test/behaviour/placement.zig), which pins layout's split arithmetic, a pane's tag plus its text at either end, that the survey's Tagbottom fix would have broken (it hides the last line), and says so at layout.bodyTop Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* ninep pane: a write's splice and the undo step it joins are one ↵Gabriel Schneider13 days
| | | | | | | spliceJoined, where flushBatch, writeBody and writeData each did joinOnly, the splice and the two joined fields around it; holdWrite holds a write's bytes in the open's batch and answers how many it took, so the append and its clock are written once, and heldBytes is the one test of whose batch it is, written out three times before Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* ninep tree: resolveSelf walks the tree with lookup, a name at a time, ↵Gabriel Schneider13 days
| | | | | | | refusing os and /pane/new itself, where it re-implemented lookup's rules and missed the columns: an editor path col/<n>/tag (Look, /n/self) now names that column's tag, as the wire serves it, the equivalence test checking it Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* 9p_io: exportPaneEnv and exportSessionEnv are one exportEnv, telling a child ↵Gabriel Schneider13 days
| | | | | | | this process's own socket, which a listener's path is from its listen to its deinit; host_io's two calls name it, and forkShell's listener argument, read by nothing now, goes from the frontends' calls with them; the env test sets the socket rather than building a Listener Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* events: noteAction answers nothing, as all ten callers threw its bool away, ↵Gabriel Schneider13 days
| | | | | | | and formats its record itself; noteFollow was noteAction at 0 0 0, so mouse.zig's two calls name noteAction; formatRecord, Action.char and Action.fromChar, one or two callers each, go Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* fs: readRestore reads the file restorePath names, where readRestoreIn ↵Gabriel Schneider13 days
| | | | | | | decided again, its own way, whether a relative name is the DumpDir's; a DumpDir entry that is a directory is passed over, as restorePath already did, not read and refused; the Restore lookup test runs through readRestore, every case kept Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* walk: hash names isAtomic and isBitset where it spelled them out again, ↵Gabriel Schneider13 days
| | | | | | | plainBytes is flatHash and isSigned is written at its one use; a dump's float of another width is incompatible, as any other changed kind, not converted; unlockBlobs is the store it wrapped, Dump.shared was memo.count(), elements takes the slice it is always given, and five names nothing outside reads lose pub; two doc lines go back to lengthOf Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* walk: dead branches out: hashMap and its dispatch (no HashMap is reachable ↵Gabriel Schneider13 days
| | | | | | | from a digest's roots: a map in Pardes would not compile past opaqueTo), and the dump's arms for errors with Load.errorNamed (no dumped type holds one, and Load refuses anyerror); the Kind numbers stay, an old dump's table still names them, and the tape keeps its errors Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* ninep addr: a search too slow is error.Slow, not the outer null of a ↵Gabriel Schneider13 days
| | | | | | | ??Range, and addr takes pane.zig's clip rather than a copy; nthLineAfter, a one-line wrapper of modal.lineStartExact with one caller, is inline, its test now lineStartExact's Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* ninep: Messages is made with a literal, not its one-line init; writePager's ↵Gabriel Schneider13 days
| | | | | | | two hosted-and-local guards are one; events' shownAs drops an alias of its argument and flag_expansion, which nothing reads, goes; doc comments sit on their own functions and fields again (noteError's, notePath's, writeEvent's, expandAt's in four fragments; Namespace's late_failure, batch and header_rewrite, whose key is a column's serial) and pane.zig's say what a name takes, blanks and controls included, as the reference does Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* ninep ctl: a control message's refusal is one refuseQuoting with a tail, so ↵Gabriel Schneider13 days
| | | | | | | refuseTo and the column ctl's two hand-built refusals, each cut at its own length, go; a captured run's failure is one failedWrite, said three times before; get returns getRefused's words, already in ename, where it copied them out and back; a constant was formatted into a throwaway buffer; writeSettingsOf had no caller; the tests' no-op spawn host is testing.zig's starting, not four copies Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* ninep pty: verb answers a pty/ctl line's refusal in its words, so tooFewRows ↵Gabriel Schneider13 days
| | | | | | | and outOfRange, which parsed a refused winsize twice more to choose them, go; exec's three refusals sit under one guard; writeRun trims its line once and drops a check its blank-line check already made Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge