Skip to content

getVaultLinkSuggestions

Gets the vault files matching a query, as LinkAndTagInputSuggest suggests them after [[: by the link text relative to the source path first, and by the full path when the link text does not match.

Import:

import { getVaultLinkSuggestions } from '@mnaoumov/obsidian-lib/link-and-tag-input-suggest';

Signature:

function getVaultLinkSuggestions(params: GetVaultLinkSuggestionsParams): LinkSuggestion[]

Parameters:

Parameter Type Description
params GetVaultLinkSuggestionsParams The parameters.

Returns: LinkSuggestion[] — The suggestions, best match first.


Links to this page: