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:

Parameter Type Description
file TFile The renamed file.
oldPath string Previous file path.

Returns: void