recordAttachmentPlacement
Judges one resolved reference and records the verdict in the index.
Records nothing under ExternalAttachmentLinkMode.Ignore, for a note that is not treated as an attachment, and for an ignored or shared path. Otherwise the referencing note becomes a proper note of the attachment when its folder holds it, and the reference becomes an entry when it does not.
Import:
import { recordAttachmentPlacement } from '@mnaoumov/obsidian-lib/misplaced-attachment';Signature:
function recordAttachmentPlacement(params: RecordAttachmentPlacementParams): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
params |
RecordAttachmentPlacementParams | The reference, its note, its target and the index. |
Returns: Promise<void> — A Promise that resolves once the verdict is recorded.
Links to this page: