Skip to content

RecentFileTracker.onRename method

RecentFileTracker › onRename

Unofficial

On file rename, update file path in last opened files.

Signature:

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

Parameters:

ParameterTypeDescription
fileTFileThe renamed file.
oldPathstringPrevious file path.

Returns: void