From 2e29f8ffebda59aa528c392535b7f1db31be91f8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 24 Nov 2026 21:27:16 -0300 Subject: messages: SPC e acts on the message the notice row leads with, SPC h m is the history newest first, and Esc at rest takes a thing at a time (pick-ui SPEC ยง10.4, walk UI line C item 5): the Message word (SPC e, quiet: what it does shows) lists an error's places in a +Search under the pane and lands on the first (today's list, walked by the Look walk until agent D's picker lands lists in the pane), the error gone; a question gets the keyboard in its tag (View.answering, item 4); anything else, or nothing, opens the history; the history (Messages, SPC h m) is the log ring newest first, each line its kind's glyph, a live error's places under it, a question's answer logged after it; Esc in normal mode at rest takes a search's tints first (Places.clear), then the warnings and errors, then the extra selections (the primary kept), and only then goes back to the previous pane; tests: Messages.zig 'SPC e on an error that names places lists them under the pane and lands on the first, on a question gives its tag the keyboard, and on anything else opens the history, the newest first', 'Esc at rest takes a search's tints first, then the warnings and errors, and only then goes back'; docs/typ/builtins-tui.json from the registry; tui: core-test, shell-test, pane-test, behaviour-test pass; process-test 0 of 146 failed after the builtins and leader goldens took the Messages word's longer doc line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- core/builtins.zig | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'core/builtins.zig') diff --git a/core/builtins.zig b/core/builtins.zig index 0c643a18..af53fa6f 100644 --- a/core/builtins.zig +++ b/core/builtins.zig @@ -1709,7 +1709,22 @@ pub const LocationsConfig = struct { } }; -/// Show the messages said so far in a +Messages. +/// Act on the message the notice row leads with. +/// +/// An error that names places lists them in a +Search, which the Look walk +/// steps through; a question takes the keyboard in its pane's tag (its +/// answer's key answers it, Esc leaves it waiting); anything else opens the +/// history. +pub const Message = struct { + pub const quiet = true; + pub const scope: Scope = .session; + pub fn run(c: Ctx) void { + pardes.Messages.act(c.p, c.id); + } +}; + +/// Show the messages said so far in a +Messages, the newest first, an +/// error's places under it. pub const Messages = struct { pub const scope: Scope = .session; pub const output: OutputTraits = .{ .name = config.messages_buffer }; -- cgit v1.3