summaryrefslogtreecommitdiff
path: root/core/root.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-24 20:13:20 -0300
committerGabriel Schneider <[email protected]>2026-11-24 20:13:20 -0300
commitb77eac2511cb247ebae07494bbb13b2e6a1139ab (patch)
tree3e8f3d610485b43fc0cfc904397e51725ec8b1a6 /core/root.zig
parent480f36b85299fa7407c20a2d6482dd093f842bf7 (diff)
downloadpardes-b77eac2511cb247ebae07494bbb13b2e6a1139ab.tar.gz
pardes-b77eac2511cb247ebae07494bbb13b2e6a1139ab.zip
Pick: a picker unrolls in the tag of the pane its Enter lands in (walk UI, pick-ui SPEC.md §3.5, §5.1-§5.3, item 1 of line D): core/Pick.zig, a picker the session's (Pardes.picks, a ring of max_lists 8, each named by a serial from the panes' counter so the disk engine's target names it as it names a pane, Stream.receive giving it its batches through Query.take, now taking either), live in a view's tag as TagState kind pick (TagState.pick its serial, host its landing pane: the asking pane when it reads, else its reader, else a pane made for it where its reader would go, an empty +Preview until the preview fills it, taken away by Esc); its sources Query.zig's producers re-presented: Find's listing from the disk engine's worker and Recent, Panes, Symbols (Query.gather, the name gathering startSource did, now shared), the jump list (Output.jumpsText, what +Jumps lists) and a list's rows handed over (a language server's answer, titled by its word), all scored by Names a frame's count at a time; Grep's lines from the worker after its pause, All the places each open text finds (as Query's All); the head ` ␣ f Find pick 3/6 ⋯` (key cells from the source's leader keys, the word, the field, cursor/total, ⋯ while scoring or searching) and a second row of the other sources' words under spines continued from the key cells (TagState.Head.cells counts the second row's spines, which Band.findSpines hangs the band from); the band's rows eleven around the cursor, made in the frame's arena for the rows shown only (O(rows shown): a Find of 50k paths makes 11 rows a frame), a place prefix in the name's tint, a path's directory dimmed, matches in the match tint; the preview is the landing pane's body: the current row's file at its line (a Grep's matches lit as its places), taken from an open pane's text or read, on the frame after the cursor stood (never on the key that moved it: Pick.busy asks the frame), a reading pane's own text set aside meanwhile (Pick.aside) and put back when it rolls up, a twinned text never previewed in; TagState.toRest rolls a live picker up first, whoever puts the tag to rest; A's API: TagState.Kind pick and its pick field, Band.takes/of's pick arm, Band.Row mark/pre/faint (drawn in draw.zig joinBand), Band.place holding a step to the band's width, TagState.point on a picker's row; TEST FIRST: Pick.zig "a picker from a held pane unrolls in a reader made for it ..." and "a picker from a reading pane unrolls in that pane, its own text set aside while it previews and back on Esc"; core-test 1014/1180 (166 skipped), 0 failed
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'core/root.zig')
-rw-r--r--core/root.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/root.zig b/core/root.zig
index 36d940b2..a4adf7b1 100644
--- a/core/root.zig
+++ b/core/root.zig
@@ -92,6 +92,7 @@ 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");
@@ -414,6 +415,7 @@ test {
_ = @import("bindings.zig");
_ = @import("TagState.zig");
_ = @import("Band.zig");
+ _ = @import("Pick.zig");
_ = @import("Field.zig");
_ = @import("Effect.zig");
_ = @import("tape.zig");