Skip to main content

resolve_note_path

Function resolve_note_path 

Source
pub fn resolve_note_path(
    input: &str,
    quick_note_path: &str,
) -> Result<VaultPath>
Expand description

Resolve a user-provided note path string into a VaultPath.

Rules:

  • Empty or whitespace-only input → error
  • Starts with PATH_SEPARATOR → absolute from vault root (quick_note_path ignored)
  • Otherwise → relative, joined with quick_note_path using PATH_SEPARATOR
  • VaultPath::note_path_from normalizes path and ensures .md extension