Documentation
¶
Overview ¶
Package vault implements a note index with wikilink resolution. It provides a simple interface to walk a directory tree, collect all markdown files, and resolve note references by name (case-insensitive) with tie-breaking on path length.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault is a note index built from a root directory.
func Open ¶
Open walks the root directory recursively, collecting all .md files (skipping directories whose names start with "."), and returns a new Vault. It returns an error if the root directory cannot be accessed.
func (*Vault) Resolve ¶
Resolve resolves a note by name (case-insensitive). It accepts both "nota" and "nota.md". If multiple notes match (differ only in path), it returns the one with the shortest path; if paths are equal length, the lexicographically smaller path wins, so the result is deterministic. It returns ("", false) if no note matches.