Expand description
Bookmarks and recent locations for the sidebar.
§Bookmarks
BookmarkStore persists to ${app_config_dir}/bookmarks.json. Writes are
atomic (write-to-tmp, rename) so a crash cannot corrupt the file.
§Recents
RecentsStore is an in-memory ring buffer (cap 50) that de-duplicates
consecutive identical locations. The snapshot is written to
${app_config_dir}/recents.json on explicit flush (called from commands).
§OCP
BookmarkandRecentLocationare open for new optional fields (tags, color, …) via serdeskip_serializing_if.- The validation gate is not in this module — it lives in the command layer
(
bookmarks_cmd.rs) so the store stays transport-agnostic.
Structs§
- Bookmark
- A persisted sidebar bookmark.
- Bookmark
Input - Input for
BookmarkStore::add. - Bookmark
Patch - Patch accepted by
BookmarkStore::update. - Bookmark
Store - Persisted list of bookmarks.
- Bookmark
Store State - Wrapper that bundles the store with its backing file path.
- Recent
Location - One visited S3 location recorded for the recents list.
- Recents
Store - Ring buffer (cap 50) of recent locations.
Functions§
Type Aliases§
- Bookmark
Store Handle - Shared handle for
BookmarkStore. - Recents
Handle - Shared handle for
RecentsStore.