<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`FileView`](FileView) › [`onRename`](FileView/onRename) ## FileView.onRename() method **Signature:** ```typescript onRename(file: TFile): Promise<void>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>file</code> | [`TFile`](TFile) | | **Returns:** `Promise<void>`