summaryrefslogtreecommitdiff
path: root/core/Output.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 20:34:29 -0300
committerGabriel Schneider <[email protected]>2026-11-19 21:02:38 -0300
commit0d5c7d937c7d592ac7f3a9a8253993bffa283288 (patch)
tree987c668d92cb3b0a954e5aab32c180df924c2d0c /core/Output.zig
parent0db34fbf28e70c8c6a3c6025c0888fc5ec75201c (diff)
downloadpardes-0d5c7d937c7d592ac7f3a9a8253993bffa283288.tar.gz
pardes-0d5c7d937c7d592ac7f3a9a8253993bffa283288.zip
core, dev, runtime, test: the settings a session changes while it runs are `config.Settings`, no longer `config.Runtime` (P18, the user's ruling on the tree step's name collisions: the type's name collided with the directory `runtime/`, and the core's field of that type is already `settings`): the type on 17 lines of core/config.zig (its declaration, its methods' receivers, its tests, the comment naming it), `config.Settings` on 50 lines of eleven other files (core/Core.zig, Output.zig, builtins.zig, builtins_json.zig, exec.zig, ninep/ctl.zig, surface.zig; dev/gui/gui.zig 598, 5860, 5909; dev/jump_trail.zig's comment; runtime/main.zig 756; test/output.zig 552) and docs/next-winmode.md's one mention; a rename only, nothing else on any line; the semantics hash does not move (a type's name is not in the tape's shape); tui core-test 848/991 (143 skipped), shell-test 1027/1030, gui unit-test 1625/1629 failing only the perf check's BaselineHarnessMismatch (as the base), the macOS library for Linux and aarch64-macos and the FreeBSD cross-build rc 0, under a load of 6 to 42
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Output.zig')
-rw-r--r--core/Output.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Output.zig b/core/Output.zig
index 3ac9f521..ab84ae35 100644
--- a/core/Output.zig
+++ b/core/Output.zig
@@ -705,7 +705,7 @@ pub fn openThemes(p: *Pardes, id: usize) !void {
for (pardes.themes, 0..) |t, i| {
if (pardes.colors.groupAt(i)) |title|
try out.writer.print("{s}# {s}\n", .{ if (i == 0) "" else "\n", title });
- try out.writer.print(comptime config.Runtime.findAction(.theme).?.word ++ " {s}\n", .{t.name});
+ try out.writer.print(comptime config.Settings.findAction(.theme).?.word ++ " {s}\n", .{t.name});
}
const content = try out.toOwnedSlice();
try openStepped(p, id, .{ .cmd = .Themes }, content);
@@ -716,7 +716,7 @@ pub fn isWalkRow(file: *const File.State, row: usize, line: []const u8) bool {
if (usesLocationsConfig(state.from) or std.meta.eql(state.from, Origin{ .query = .callstack })) return isResultRow(file, row);
if (!std.meta.eql(state.from, Origin{ .cmd = .Themes })) return true;
// Section labels are for reading, not stops in the command walk.
- return std.mem.startsWith(u8, std.mem.trimStart(u8, line, " \t"), comptime config.Runtime.findAction(.theme).?.word ++ " ");
+ return std.mem.startsWith(u8, std.mem.trimStart(u8, line, " \t"), comptime config.Settings.findAction(.theme).?.word ++ " ");
}
pub fn openFonts(p: *Pardes, id: usize) !void {
@@ -733,7 +733,7 @@ fn fontsListed(gpa: std.mem.Allocator, arena: std.mem.Allocator) anyerror![]u8 {
var out: std.Io.Writer.Allocating = .init(gpa);
errdefer out.deinit();
for (fonts.list(arena, null)) |f|
- try out.writer.print(comptime config.Runtime.findAction(.font).?.word ++ " {s}\n", .{f.name});
+ try out.writer.print(comptime config.Settings.findAction(.font).?.word ++ " {s}\n", .{f.name});
return out.toOwnedSlice();
}
@@ -852,7 +852,7 @@ pub fn openConfig(p: *Pardes, id: usize) !void {
var located: std.Io.Writer.Allocating = .init(p.gpa);
defer located.deinit();
try p.locations_config.write(&located.writer);
- try config.Runtime.writeReport(&out.writer, .{
+ try config.Settings.writeReport(&out.writer, .{
.locations = located.written(),
.default_dump_dir = p.tape.authority(dumpDirectory, .{@as([]u8, &dir_buf)}),
.startup_config_path = p.startupPath(),