Skip to content

FileManager.renameProperty method

FileManager › renameProperty

Unofficial

Rename's a property for all notes currently that have the old key.

Signature:

renameProperty(oldKey: string, newKey: string): Promise<void>

Parameters:

Parameter Type Description
oldKey string The old property key.
newKey string The new property key.

Returns: Promise<void>A promise that resolves when the property is renamed across all notes.

Remarks:

The current property type is maintained.