Skip to content

LinkUpdater.renameSubpath method

LinkUpdater › renameSubpath

Unofficial

Rename a subpath reference (e.g. heading or block) within a file.

Signature:

renameSubpath(file: TFile, oldSubpath: string, newSubpath: string): Promise<void>

Parameters:

ParameterTypeDescription
fileTFileFile containing the subpath.
oldSubpathstringPrevious subpath.
newSubpathstringNew subpath.

Returns: Promise<void>A promise that resolves when the subpath has been renamed.