ObsidianSearchQuery.match method
ObsidianSearchQuery › match
Unofficial
Matches a file (and optionally its content) against the query.Signature:
match(file: TFile, content: string): null | SearchMatchResultParameters:
| Parameter | Type | Description |
|---|---|---|
| file | TFile | The file to match. |
| content | string | The file content. |
Returns: null | SearchMatchResult — The match result, or null on no match.