Skip to content

FileView.onRename method

FileView › onRename

Called when the displayed file is renamed. A no-op in the mock.

Signature:

onRename(_file: TFile): Promise<void>

Parameters:

ParameterTypeDescription
_fileTFileThe renamed file.

Returns: Promise<void>