From c0b2e5d9194ce35b9fbb58d8d6e18de66cb209a8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 10:46:54 -0300 Subject: store: Recent is a file of 200 lines under flock, written whole in place at the end of a step that changed it and read back under a session's own changes when another session wrote it since, and the panes a session closes are kept in its memory, the newest 64 within 64 MiB; the append-only CRC log with its resync and compaction, and the closed panes' self-describing dumps in it (only the session that closed one ever listed it), go; Options.store_path is recent_path ($XDG_STATE_HOME/pardes/recent), and the old store is read once while it is the newer of the two; tests: the store's four rewritten through the same windows (the 200 newest, a foreign file, a closed pane's way back from memory), the old store read once, 64 closed panes kept, recent.zig's merge; the process cases read Recent's file; docs/next-store.md is the decision Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- docs/typ/reference.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/typ/reference.typ') diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ index a7db9e2d..de886c87 100644 --- a/docs/typ/reference.typ +++ b/docs/typ/reference.typ @@ -942,7 +942,7 @@ at 200, ending in `…`. Control characters become spaces. pane from the root). - #file("/recent"): up to 200 files, PDFs and images, most recent first, `open ` or `closed ` (open in this window or not), every - window's: kept in `$XDG_STATE_HOME/pardes/store`, shared by every pardes + window's: kept in `$XDG_STATE_HOME/pardes/recent`, shared by every pardes process, each reading what the others wrote when it is next read. #word("Recent") lists them in a query pane (line 1 `Recent`, the rest narrowing them by a fuzzy match), an open one at its dot now and a -- cgit v1.3