Renames or moves a note.
This action will throw an error if the specified note doesn’t exist, so it’s best to use it after the “Check For Existence Of Note” action has determined that it does exist.
Parameters
Vault
The vault to work in.
Type: Vault reference
Current File Path
The path of the note, relative to the vault root.
Type: Text
New File Path or Name
If the new file path contains a folder structure, that folder structure must exist, i.e. it won’t be created automatically.
If the new file path is the same as the original one, nothing happens.
If the new file path already exists, an error is returned. If the new file path specifies a destination folder that does not exist, an error is returned.
Please note that to move the note to a new folder, you’ll need to specify the full destination path, i.e. folder and file name.
Type: Text
Examples
Current file path Note
, new file path Great Note
:
Note Note.md
is renamed to Great Note.md
.
Current file path Note
, new file path /Great/Note
:
- If the folder
/Great/
exists:Note.md
is moved from its place at the root level of the vault into the folder/Great/
. - If the folder
/Great/
does not exist: An error.
Related Links
- Search the Actions for Obsidian community forum for "Rename/Move Note"