Expand description
Tauri commands for bookmarks and recent locations.
§Commands
bookmarks_list— list all bookmarks for the caller.bookmark_add— add a new bookmark; returns the created record.bookmark_remove— remove a bookmark by id.bookmark_update— rename a bookmark.recents_list— list recent locations (newest first).recent_track— record a navigation (called after every pane move).recents_clear— clear all recent locations.
§Validation gate
bookmarks_list and recents_list return the full unfiltered list. The
frontend validation gate (per round-1 finding #9) is applied in the
<Bookmarks> and <Recents> React components via useValidatedProfile.
This keeps the data layer transport-agnostic and lets the UI render a
disabled state for unvalidated profiles without an extra round-trip.
§OCP
Adding a new bookmark field = one new arm in BookmarkPatch + one line in
bookmark_update. No existing commands change.
Functions§
- bookmark_
add - Add a new bookmark. Returns the created record.
- bookmark_
remove - Remove a bookmark by
id. - bookmark_
update - Update mutable fields of a bookmark.
- bookmarks_
list - Return all persisted bookmarks in insertion order.
- recent_
track - Record a navigation. Called after every pane location change.
- recents_
clear - Clear all recent locations and flush the empty list to disk.
- recents_
list - Return recent locations, newest first.