Skip to content

SearchQuery

Unofficial

Represents a search query with its configuration and methods for searching.

Import:

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

Signature:

export class SearchQuery

Properties

PropertyTypeDescription
caseSensitivebooleanWhether the search is case sensitive.
literalbooleanWhether the search string is treated as a literal.
regexpbooleanWhether the search string is a regular expression.
replacestringThe replacement string.
searchstringThe search string.
validbooleanWhether the search query is valid.
wholeWordbooleanWhether the search matches whole words only.

Methods

MethodReturnsDescription
eq(other)booleanCheck whether this query is equal to another.
getCursor(state, from?, to?)Iterator<SearchQueryMatch>Get a cursor for iterating over matches.

Links to this page: