Skip to main content

rename

Function rename 

Source
pub fn rename(
    vault: &Vault,
    path: &str,
    name: &str,
) -> Result<(String, Vec<String>), String>
Expand description

A note renamed: its file gets name (its extension kept), in the same folder, and the notes that link to it follow: [[old]], ![[old.png]], Markdown links by path, sioul:note/ addresses. Returns its new path and the notes changed.