Skip to content

getSearchMatcherGuards

Unofficial

Creates exact prototype guards by compiling probe queries with the running app’s parser.

No translated descriptions or minified names are inspected. Create the guards once per app; each predicate rejects unknown nodes, including subclasses. Unsupported nodes must keep all candidates. Probe compilation does not start Search or change an existing search pane.

Import:

import { getSearchMatcherGuards } from '@obsidian-typings/obsidian-catalyst-latest/implementations';

Signature:

function getSearchMatcherGuards(app: App): SearchMatcherGuards

Parameters:

Parameter Type Description
app App The app instance.

Returns: SearchMatcherGuards — Guards tied to this app’s parser prototypes.


Links to this page: