summaryrefslogtreecommitdiff
path: root/runtime/main.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 /runtime/main.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 'runtime/main.zig')
-rw-r--r--runtime/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/main.zig b/runtime/main.zig
index 2b600d63..448dfa57 100644
--- a/runtime/main.zig
+++ b/runtime/main.zig
@@ -753,7 +753,7 @@ const Word = struct {
/// Its group: the first key after the leader, else what it is.
fn group(w: Word) []const u8 {
if (std.mem.indexOf(u8, w.doc, " (addon ") != null and std.mem.endsWith(u8, w.doc, ")")) return "addon";
- if (pardes.config.Runtime.find(w.name) != null) return "setting";
+ if (pardes.config.Settings.find(w.name) != null) return "setting";
if (std.meta.stringToEnum(pardes.builtins.registry.Builtin(), w.name)) |b| if (pardes.config.leader_path.get(b)) |p| switch (p[0]) {
'f' => return "file",
'c' => return "column",