summaryrefslogtreecommitdiff
path: root/core/builtins.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/builtins.zig')
-rw-r--r--core/builtins.zig17
1 files changed, 16 insertions, 1 deletions
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 };