Function index_notes

Source
pub fn index_notes(config: &NoteConfig) -> Result<(), IndexNotesError>
Expand description

Index all notes in the notes and dailies directories. This will also remove deleted files from the index.

ยงErrors

Returns an error if there is a problem opening or the index.

Note that this will return Ok if there is a problem indexing an individual note, but a warning will be printed to stderr.