interface SearchOptions {
    backwards: boolean;
    caseSensitive: boolean;
    needle: string | RegExp;
    preserveCase: boolean;
    preventScroll: boolean;
    range: Range;
    re: any;
    regExp: boolean;
    skipCurrent: boolean;
    start: Range;
    wholeWord: boolean;
    wrap: boolean;
}

Properties

backwards: boolean

Whether to search backwards from where cursor currently is

caseSensitive: boolean

Whether the search ought to be case-sensitive

needle: string | RegExp

The string or regular expression you're looking for

preserveCase: boolean
preventScroll: boolean
range: Range

The [[Range]] to search within. Set this to null for the whole document

re: any
regExp: boolean

Whether the search is a regular expression or not

skipCurrent: boolean

Whether or not to include the current line in the search

start: Range

The starting [[Range]] or cursor position to begin the search

wholeWord: boolean

Whether the search matches only on whole words

wrap: boolean

Whether to wrap the search back to the beginning when it hits the end

Generated using TypeDoc