Skip to content

SearchTextMatcher

Unofficial

An unquoted literal substring matcher.

Import:

import type { SearchTextMatcher } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface SearchTextMatcher extends SearchRegexMatcher

Extends: SearchRegexMatcher

Properties

PropertyTypeDescription
matchedTokensSearchQueryToken[]The query tokens this matcher consumed while the query was parsed.
(Inherited from SearchRegexMatcher)
regexstringThe regular expression source, without delimiters or flags.
(Inherited from SearchRegexMatcher)
textstringThe literal substring.

Methods

MethodReturnsDescription
eatToken(state)voidConsumes the parser's current token, recording it in SearchMatcher.matchedTokens.
(Inherited from SearchRegexMatcher)
getContext(offset)null | SearchMatcherTokenContextFinds the matcher that owns the query token at a cursor offset.
(Inherited from SearchRegexMatcher)
getInfo()stringDescribes this matcher, as shown by the search view's "Explain search term".
(Inherited from SearchRegexMatcher)
match(context)null | SearchMatchResult | undefinedMatches this node against a context.
(Inherited from SearchRegexMatcher)
requiredInputs()SearchRequiredInputsThe inputs this matcher needs to evaluate a file.
(Inherited from SearchRegexMatcher)
setText(text)voidReplaces the text and its escaped regular expression source.

Links to this page: