Skip to main content

Module vault_ops

Module vault_ops 

Source
Expand description

Core vault operations — pure business logic.

No framework dependencies (no Tauri, no Qt). Takes &AppState, returns Result<T, LoreError>.

Functions§

create_page
Create a new page. Creates the .md file on disk.
delete_page
Delete a page. Removes file from disk, DB entry, graph node.
find_unlinked_mentions
Find pages that mention this page’s title but don’t link to it.
get_backlinks_list
Get backlinks for a page.
get_graph_data
Get graph data for visualization.
get_page_list
Get all pages for the sidebar page tree.
load_page
Load a page by slug. Returns content + backlinks.
open_vault
Open a folder as a Lore vault. Creates .lore/ directory, scans all .md files, populates DB and graph. Returns vault info on success.
rename_page
Rename a page. Updates slug, title, file on disk, all incoming links in DB.
save_page
Save page content. Re-parses links, updates DB, graph, and FTS.
search_titles
Quick title search for the quick switcher.
search_vault
Full-text search across all pages.