calternal_notes_core::note_resolver
Pure Note reference resolution over rows from the rebuildable Notes index.
Source: crates/calternal-notes-core/src/note_resolver.rs
NoteRef
Section titled “NoteRef”pub enum NoteRefNo doc comment.
Variants
Ok { path: String, id: String }Ambiguous { candidates: Vec<NoteIndexRow> }NotFound
Implements: Debug, Clone, PartialEq, Eq
Source: crates/calternal-notes-core/src/note_resolver.rs:6
Functions
Section titled “Functions”resolve_note_ref
Section titled “resolve_note_ref”pub fn resolve_note_ref(rows: &[NoteIndexRow], raw_ref: &str) -> NoteRefResolve a path, slug, title, or wikilink against indexed Notes.
This function only compares references with supplied rows. It never reads a path from disk, so traversal input cannot escape the index.