Constructor
File editor panel
Protected
_stateProtected
currentCurrent match index
Protected
filtersCurrent search filters
Protected
queryCurrent search query
Protected
widgetFile editor panel
Protected
cmCodeMirror search highlighter
Current match index
Text editor
Whether the cell search is active.
This is used when applying search only on selected cells.
Whether the search provider is disposed or not.
Set to true if the widget under search is read-only, false if it is editable. Will be used to determine whether to show the replace option.
Number of matches in the cell.
Editor content model
Support for options adjusting replacement behavior.
Changed signal to be emitted when search matches change.
Get the current match if it exists.
The current match
Highlight the next match.
Optional
loop: booleanOptional
options: IHighlightAdjacentMatchOptionsThe next match if there is one.
Highlight the previous match.
Optional
loop: booleanOptional
options: IHighlightAdjacentMatchOptionsThe previous match if there is one.
Protected
onCallback on source change
Source of the change
Source change
Replace all matches in the cell source with the provided text
The replacement text.
Optional
options: IReplaceOptionsWhether a replace occurred.
Replace the currently selected match with the provided text.
If no match is selected, it won't do anything.
The caller of this method is expected to call highlightNext
if after
calling replaceCurrentMatch()
attribute this.currentIndex
is null.
It is necessary to let the caller handle highlighting because this
method is used in composition pattern (search engine of notebook cells)
and highlighting on the composer (notebook) level needs to switch to next
engine (cell) with matches.
The replacement text.
Optional
loop: booleanOptional
options: IReplaceOptionsWhether a replace occurred.
Set whether user selection should be protected from modifications.
If disabled, the selection will be updated on search and on editor focus
to cover the current match. We need to protect selection from modifications
for both: search in text and search in cells; since setSearchSelection
is only telling us about search in text, we need to have an additional
way to signal that either search in text or in cells is active, or for
any other reason selection range should be protected.
Protected
updateStatic
createInstantiate a search provider for the widget.
The widget provided is always checked using isApplicable
before calling
this factory.
The widget to search on
Optional
translator: ITranslator[optional] The translator object
The search provider on the widget
Static
isReport whether or not this provider has the ability to search on the given object
File editor search provider