EditorSearchProvider | @jupyterlab (original) (raw)
Type Parameters
- T extends CodeEditor.IModel = CodeEditor.IModel
Hierarchy (View Summary)
- EditorSearchProvider
Implements
Index
Constructors
constructor
- new EditorSearchProvider<T extends CodeEditor.IModel = CodeEditor.IModel>(): EditorSearchProvider<
T,
> Type Parameters
- T extends CodeEditor.IModel = CodeEditor.IModel
Returns EditorSearchProvider<T>
Properties
Protected
_stateChanged
Protected
currentIndex
currentIndex: null | number = null
Protected
filters
Protected
query
query: null | RegExp = null
Accessors
Protected
cmHandler
- get cmHandler(): CodeMirrorSearchHighlighter
CodeMirrorSearchHighlighter
Returns
currentMatchIndex
- get currentMatchIndex(): null | number
Returns null | number
Protected
Abstract
editor
- get editor(): null | CodeEditor.IEditor
CodeEditor.IEditor
Returns null |
isActive
- get isActive(): boolean
Returns boolean
isDisposed
- get isDisposed(): boolean
Returns boolean
matchesCount
- get matchesCount(): number
Returns number
Protected
Abstract
model
stateChanged
- get stateChanged(): ISignal<IBaseSearchProvider, void>
ISignal<IBaseSearchProvider, void>
Returns
Methods
clearHighlight
dispose
- dispose(): void
Returns void
endQuery
getCurrentMatch
- getCurrentMatch(): undefined | ISearchMatch
ISearchMatch
Returns undefined |
The current match
highlightNext
- highlightNext(
loop?: boolean,
options?: IHighlightAdjacentMatchOptions,
): Promise<undefined | ISearchMatch> Promise<undefined | ISearchMatch>
Returns
The next match if there is one.
highlightPrevious
- highlightPrevious(
loop?: boolean,
options?: IHighlightAdjacentMatchOptions,
): Promise<undefined | ISearchMatch> Promise<undefined | ISearchMatch>
Returns
The previous match if there is one.
Protected
onSharedModelChanged
- onSharedModelChanged(emitter: ISharedText, changes: SourceChange): Promise<void>
Promise<void>
Returns
replaceAllMatches
- replaceAllMatches(newText: string, options?: IReplaceOptions): Promise<boolean>
Promise<boolean>
Returns
Whether a replace occurred.
replaceCurrentMatch
- replaceCurrentMatch(
newText: string,
loop?: boolean,
options?: IReplaceOptions,
): Promise<boolean> Parameters
- newText: string
Optional
loop: booleanOptional
options: IReplaceOptions
Returns Promise<boolean>
Whether a replace occurred.
setIsActive
setProtectSelection
- setProtectSelection(v: boolean): void
Returns void
setSearchSelection
Returns Promise<void>
startQuery
Protected
updateCodeMirror
- updateCodeMirror(content: string): Promise<void>
Parameters
- content: string