Skip to content

SearchCursor

Defined in: src/obsidian/internals/SearchCursor.d.ts:4

Methods

current()

current(): object

Defined in: src/obsidian/internals/SearchCursor.d.ts:8

Current editor search position

Returns

object

from

from: EditorPosition

to

to: EditorPosition


findAll()

findAll(): object[]

Defined in: src/obsidian/internals/SearchCursor.d.ts:12

All search results

Returns

object[]


findNext()

findNext(): object

Defined in: src/obsidian/internals/SearchCursor.d.ts:16

Next editor search position

Returns

object

from

from: EditorPosition

to

to: EditorPosition


findPrevious()

findPrevious(): object

Defined in: src/obsidian/internals/SearchCursor.d.ts:20

Previous editor search position

Returns

object

from

from: EditorPosition

to

to: EditorPosition


replace()

replace(replacement, origin): void

Defined in: src/obsidian/internals/SearchCursor.d.ts:26

Replace current search result with specified text

Parameters

replacement

string

origin

string

Returns

void

replaceAll()

replaceAll(replacement, origin): void

Defined in: src/obsidian/internals/SearchCursor.d.ts:30

Replace all search results with specified text

Parameters

replacement

string

origin

string

Returns

void