UpdateLinksInFileParams
Params for updateLinksInFile.
Import:
import type { UpdateLinksInFileParams } from 'obsidian-dev-utils/obsidian/link';Signature:
export interface UpdateLinksInFileParams extends ProcessOptionsExtends: ProcessOptions
Properties
| Property | Type | Description |
|---|---|---|
| app | App | An Obsidian app instance. |
| linkStyle? | LinkStyle | A style of the link. |
| newSourcePathOrFile | PathOrFile | A file to update the links in. |
| oldSourcePathOrFile? | PathOrFile | An old path of the file. |
| resourceLockComponent | null | ResourceLockComponent | An 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? | boolean | Whether to fail if the file is missing or deleted. (Inherited from ProcessOptions) |
| shouldShowTimeoutNotice? | boolean | Whether to show a timeout notice. (Inherited from ProcessOptions) |
| shouldUpdateEmbedOnlyLinks? | boolean | Whether to update only embedded links. |
| shouldUpdateFileNameAlias? | boolean | Whether to update file name alias. |
Links to this page: