Skip to content

UpdateLinksInFileParams

Params for updateLinksInFile.

Import:

import type { UpdateLinksInFileParams } from 'obsidian-dev-utils/obsidian/link';

Signature:

export interface UpdateLinksInFileParams extends ProcessOptions

Extends: ProcessOptions

Properties

PropertyTypeDescription
appAppAn Obsidian app instance.
linkStyle?LinkStyleA style of the link.
newSourcePathOrFilePathOrFileA file to update the links in.
oldSourcePathOrFile?PathOrFileAn old path of the file.
resourceLockComponentnull | ResourceLockComponentAn resource-lock component used to lock the file's editor read-only for the duration of processing. The lock is reference-counted, so it composes with any outer operation-level lock on the same note.
(Inherited from ProcessOptions)
shouldFailOnMissingFile?booleanWhether to fail if the file is missing or deleted.
(Inherited from ProcessOptions)
shouldShowTimeoutNotice?booleanWhether to show a timeout notice.
(Inherited from ProcessOptions)
shouldUpdateEmbedOnlyLinks?booleanWhether to update only embedded links.
shouldUpdateFileNameAlias?booleanWhether to update file name alias.

Links to this page: