Skip to content

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

pub enum NoteRef

No 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

pub fn resolve_note_ref(rows: &[NoteIndexRow], raw_ref: &str) -> NoteRef

Resolve 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.

Source: crates/calternal-notes-core/src/note_resolver.rs:16