SearchQuotedTextMatcher
Unofficial
A quoted text matcher. Content uses core’s word boundaries; filenames use a substring.
Import:
import type { SearchQuotedTextMatcher } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface SearchQuotedTextMatcher extends SearchMatcherExtends: SearchMatcher
Properties
| Property | Type | Description | |
|---|---|---|---|
| matchedTokens | SearchQueryToken[] | The query tokens this matcher consumed while the query was parsed. (Inherited from SearchMatcher) | |
| partialMatchRegex | string | Escaped substring source used outside content. | |
| text | string | The decoded quoted text. | |
| wholeWordRegex | string | Source with core's word boundaries and captured literal, used for content. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| eatToken(state) | void | Consumes the parser's current token, recording it in SearchMatcher.matchedTokens. (Inherited from SearchMatcher) | |
| getContext(offset) | null | SearchMatcherTokenContext | Finds the matcher that owns the query token at a cursor offset. (Inherited from SearchMatcher) | |
| getInfo() | string | Describes this matcher, as shown by the search view's "Explain search term". (Inherited from SearchMatcher) | |
| match(context) | null | SearchMatchResult | undefined | Matches this node against a context. (Inherited from SearchMatcher) | |
| requiredInputs() | SearchRequiredInputs | The inputs this matcher needs to evaluate a file. (Inherited from SearchMatcher) |
Links to this page: