NoPriorityWinnerReason
Why the priority list did not settle which note owns an attachment.
The three values are exactly the three ways pickHighestPriorityNotePath (plus its empty-list guard) can fail to name a winner, so a caller can tell the user the real reason instead of only reporting that the attachment is referenced by several notes.
Import:
import type { NoPriorityWinnerReason } from '@mnaoumov/obsidian-lib/note-priority';Signature:
export enum NoPriorityWinnerReasonMembers:
| Member | Value | Description |
|---|---|---|
EmptyList |
'EmptyList' |
The priority list is empty — its default. Nothing was configured to decide between the notes. |
NoMatch |
'NoMatch' |
The list has entries, but none of the referencing notes matches any of them. |
Tie |
'Tie' |
Several referencing notes tie for the best rank, so the list names no single owner. |
Links to this page: