Skip to content

SearchCursor

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

Methods

current()

current(): EditorRange

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

Current editor search position

Returns

EditorRange


findAll()

findAll(): EditorRange[]

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

All search results

Returns

EditorRange[]


findNext()

findNext(): EditorRange

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

Next editor search position

Returns

EditorRange


findPrevious()

findPrevious(): EditorRange

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

Previous editor search position

Returns

EditorRange


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