diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-09 02:14:21 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-09 02:21:58 -0300 |
| commit | bfb74e76ef7dfe305a26010edc86dac456034c3e (patch) | |
| tree | c90744aa2e0edf37c8e6cbc0033476230a086412 /src/Core.zig | |
| parent | c78d362fa20393621ac198861f891439f9d832e9 (diff) | |
| download | pardes-bfb74e76ef7dfe305a26010edc86dac456034c3e.tar.gz pardes-bfb74e76ef7dfe305a26010edc86dac456034c3e.zip | |
locality: single-caller helpers beside their caller: File's placeOf and restoreName beside undoStep, Query's row makers (clearPlaces, makeAllRows, makeNameRows, feedGrepPlaces) beside produce, look's helpers beside lookAt, lookSpanIn and lookUnresolved, mouse's beside handleMouse and dragUpdate, normal's beside handleNormal and executeNormalAction, and the rest in Core, draw, exec, layout, main, modal, replica, syntax, terminal; Messages.printRight into draw.zig beside joinNotice and edit.spanHas into exec.zig beside operandAt, their only callers
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/Core.zig')
| -rw-r--r-- | src/Core.zig | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/Core.zig b/src/Core.zig index 67667695..8aecea53 100644 --- a/src/Core.zig +++ b/src/Core.zig @@ -660,11 +660,6 @@ pub fn loadRecent(p: *Pardes) void { p.db.readRecent(p); } -/// What changed written out, at the end of a step and at the end. -pub fn saveRecent(p: *Pardes) void { - p.db.writeRecent(p, false); -} - /// Whether `path` is one Recent keeps: a file on this host's disk, not /// the served tree's (`/virtual/`) nor a name never saved. pub fn recentKeeps(path: []const u8) bool { @@ -1389,6 +1384,12 @@ pub fn fsPayload(p: *const Pardes, r: ctlfs.Reply) []const u8 { }; } +/// For shells that only need a yes or no: macOS, which keeps its own +/// frame bank. +pub fn animationActive(p: *const Pardes) bool { + return p.nextWake() != null; +} + pub fn pump(p: *Pardes, host: Host) !void { p.host = host; const taped = tape.enter(p, .pump); @@ -1743,6 +1744,11 @@ pub fn windowOpacityDone(p: *Pardes, applied: u8, failure: ?[]const u8) void { p.setMessage(p.view().active, buf.print("WindowOpacity: {s}", .{reason})); } +/// What changed written out, at the end of a step and at the end. +pub fn saveRecent(p: *Pardes) void { + p.db.writeRecent(p, false); +} + /// Recompute geometry, push grid-size changes to each emulator and pty, /// fire deferred greetings. pub fn sync(p: *Pardes) void { @@ -1989,12 +1995,6 @@ pub fn nextWake(p: *const Pardes) ?u64 { return if (frames) |n| p.clock.stepped_ns + n * frame_ns else null; } -/// For shells that only need a yes or no: macOS, which keeps its own -/// frame bank. -pub fn animationActive(p: *const Pardes) bool { - return p.nextWake() != null; -} - /// Bring core time up to `now_ns`, the shell's monotonic clock: one /// `.tick` for every whole frame that has passed since it last stood /// still, so a timing lasts as long on a 144 Hz display, over ssh or |
