Skip to content

SearchQuotedTextMatcher

Unofficial

A quoted text matcher. Content uses core’s word boundaries; filenames use a substring.

Import:

import type { SearchQuotedTextMatcher } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface SearchQuotedTextMatcher extends SearchMatcher

Extends: SearchMatcher

Properties

PropertyTypeDescription
matchedTokensSearchQueryToken[]The query tokens this matcher consumed while the query was parsed.
(Inherited from SearchMatcher)
partialMatchRegexstringEscaped substring source used outside content.
textstringThe decoded quoted text.
wholeWordRegexstringSource with core's word boundaries and captured literal, used for content.

Methods

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

Links to this page: