Skip to content

LinkPathHeadingSuggestion

A suggested heading of the file a link path resolves to.

Import:

import type { LinkPathHeadingSuggestion } from '@mnaoumov/obsidian-lib/link-path-input-suggest';

Signature:

export interface LinkPathHeadingSuggestion

Properties

PropertyTypeDescription
fileTFileThe file the heading belongs to.
headingHeadingCacheThe heading.
matches?SearchMatchesThe characters of the heading text the query matched, highlighted when the suggestion renders. Nothing is highlighted when omitted.
valuestringThe whole link path the input takes when the suggestion is picked: the path, #, and the heading as a link subpath.

Links to this page: