diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 22:02:15 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 22:06:24 -0300 |
| commit | 7d10ad68b07a7bbab23fa8565d39183e4387c478 (patch) | |
| tree | 5711e0680c6eb681a02965c17eb616265f189131 /src/fonts.zig | |
| parent | 484841325bb35b0bb7c55f7980178388c4e39c71 (diff) | |
| download | pardes-7d10ad68b07a7bbab23fa8565d39183e4387c478.tar.gz pardes-7d10ad68b07a7bbab23fa8565d39183e4387c478.zip | |
words: `remote` out of the code where it meant a client (PARDES.md ruling 1: it meant any client, this machine's too): tui.zig's `Remote` is `Client` (the window's word already), `tui.remote` and `gui.remote` are `runClient`, `gui.remoteSession` is `clientSession`, `main.remoteAttach` is `attachClient`, the Shell's and Input's `remote` fields `client`, `fonts.remote` `fromSession` and the window's `remote_font_request` `session_font_request`; what a person reads: the window client's log "remote font is not installed here" is "the session's font is not installed here", attach's "no runtime directory to name the remote socket by" names the far socket; NOT renamed: the env var PARDES_REMOTE_RUNTIME (the user types it), 9p_io's error.Remote and RemoteError (a 9P peer's refusal), fs.zig's remote_path (a 9P mount's), tui.zig:86's terminal over ssh and :1579's shell over ssh, pty.zig's test prompt; names only, no logic moved; tui core-test 811/950 (139 skipped), shell-test 993/996, behaviour-test 269/273 (the four addon ABI tests the base fails), process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's), daemon.py main passes; gui frame corpus 77/77 byte-identical against mbase, unit-test 1582/1590 (the base's 8 failures)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'src/fonts.zig')
| -rw-r--r-- | src/fonts.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fonts.zig b/src/fonts.zig index 84ce5307..540e3a60 100644 --- a/src/fonts.zig +++ b/src/fonts.zig @@ -76,9 +76,9 @@ pub fn list(arena: std.mem.Allocator, want_name: ?[]const u8) []const Font { return scan(arena, null, true); } -/// A remote config's absolute font path belongs to its machine. Resolve the -/// same face by name on this machine, retaining the filename as a fallback. -pub fn remote(arena: std.mem.Allocator, path: []const u8, name: []const u8) ?Font { +/// The session's config's absolute font path belongs to the session's machine. +/// Resolve the same face by name on this machine, retaining the filename as a fallback. +pub fn fromSession(arena: std.mem.Allocator, path: []const u8, name: []const u8) ?Font { if (name.len > 0) { const matches = list(arena, name); if (matches.len > 0) return matches[0]; @@ -421,7 +421,7 @@ test "the walk finds this machine's monospace faces" { } } -test "a remote font config resolves the installed face despite another machine's path" { +test "the session's font config resolves the installed face despite another machine's path" { var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); defer arena.deinit(); const alloc = arena.allocator(); @@ -429,8 +429,8 @@ test "a remote font config resolves the installed face despite another machine's if (installed.len == 0) return error.SkipZigTest; const face = installed[0]; const foreign = try std.fmt.allocPrint(alloc, "/other-machine/fonts/{s}", .{std.Io.Dir.path.basename(face.path)}); - const by_name = remote(alloc, foreign, face.name) orelse return error.MissingLocalFace; + const by_name = fromSession(alloc, foreign, face.name) orelse return error.MissingLocalFace; try std.testing.expectEqualStrings(face.path, by_name.path); - const by_file = remote(alloc, foreign, "") orelse return error.MissingLocalFace; + const by_file = fromSession(alloc, foreign, "") orelse return error.MissingLocalFace; try std.testing.expectEqualStrings(face.path, by_file.path); } |
