diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 09:57:43 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-10 09:57:43 -0300 |
| commit | a953f560f648e91dda8dd3a8dafe60a7f75739d0 (patch) | |
| tree | 1ae6de86ede6b0e1464708c04478340609e4296e /src/look.zig | |
| parent | 5033138d9e93e05dc961c0f7b93e46208d5df33d (diff) | |
| download | pardes-a953f560f648e91dda8dd3a8dafe60a7f75739d0.tar.gz pardes-a953f560f648e91dda8dd3a8dafe60a7f75739d0.zip | |
history: each dump is the command that brings it back, `Restore <label>` on a line of its own, its date, size, pane count and names indented on the line under it, so the line is a whole command (a sweep of it, a click on its Restore, a look at it) and the details are read, not parsed; the builtins JSON, the reference and the changelog say so
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/look.zig')
| -rw-r--r-- | src/look.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/look.zig b/src/look.zig index 95506d9c..082565ed 100644 --- a/src/look.zig +++ b/src/look.zig @@ -1500,9 +1500,10 @@ pub fn lookAt(p: *Pardes, id: usize, operand_raw: []const u8) void { var home_buf: [4096]u8 = undefined; const stripped = std.mem.trim(u8, operand_raw, " \t\r\n"); const operand = if (stripped.len > 0 and stripped[0] == '~') filesystem.expandHome(stripped, &home_buf) else std.mem.trimEnd(u8, operand_raw, "\r\n"); - // A +History row names a dump of the state file's (`Restore <label>`, - // then its date, size and panes): a look at it is a Restore of that - // dump; its other words are looked as any (a path in it opens). + // A +History line names a dump of the state file's (`Restore <label>`; + // its date, size and panes are the indented line under it): a look at + // it is a Restore of that dump; other words are looked as any (a path + // in it opens). if (isHistoryList(pane)) { var row = std.mem.trim(u8, operand, " \t\r\n"); if (std.mem.startsWith(u8, row, "Restore ")) row = std.mem.trimStart(u8, row["Restore ".len..], " "); |
