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 | SearchResultParameters:
| Parameter | Type | Description |
|---|---|---|
| path | string | Path of the file. |
| file | TFile | File containing the block. |
| block | BlockCache | Block cache entry to match against. |
| sourcePath | string | null | Source path for link resolution. |
| content | string | Content of the block. |
| textParts | string[] | Search fragments to match. |
Returns: null | SearchResult — Search result if matched, or null.