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.
linkPathStyle?LinkPathStyleA style of the link path.
linkStyle?LinkStyleA style of the link.
newSourcePathOrFilePathOrFileA file to update the links in.
oldSourcePathOrFile?PathOrFileAn old path of the file.
pluginNoticeComponentnull | PluginNoticeComponentPlugin notice component used to show the timeout notice. When null, no timeout notice is shown regardless of ProcessOptions.shouldShowTimeoutNotice; the timeout is only logged.
(Inherited from ProcessOptions)
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: