Skip to content

BookmarksPluginInstance.onFileRename method

BookmarksPluginInstance › onFileRename

Unofficial

Handle a file rename and update affected bookmarks.

Signature:

onFileRename(file: TFile, oldPath: string): void

Parameters:

ParameterTypeDescription
fileTFileThe renamed file.
oldPathstringThe previous file path.

Returns: void