Skip to content

FileSuggestManager.matchBlock method

FileSuggestManager › matchBlock

Unofficial

Match search fragments to a block.

Signature:

matchBlock(path: string, file: TFile, block: BlockCache, sourcePath: string | null, content: string, textParts: string[]): null | SearchResult

Parameters:

ParameterTypeDescription
pathstringPath of the file.
fileTFileFile containing the block.
blockBlockCacheBlock cache entry to match against.
sourcePathstring | nullSource path for link resolution.
contentstringContent of the block.
textPartsstring[]Search fragments to match.

Returns: null | SearchResultSearch result if matched, or null.