find-and-replace/findandreplacestate
module
Classes
-
module:find-and-replace/findandreplacestate~FindAndReplaceState
Type Definitions
-
module:find-and-replace/findandreplacestate~FindCallback
-
FindCallbackResult
deprecatedmodule:find-and-replace/findandreplacestate~FindCallbackResult
-
module:find-and-replace/findandreplacestate~FindCallbackResultObject
Functions
-
sortSearchResultsByMarkerPositions( model, results ) → Array<FindResultType>
internalmodule:find-and-replace/findandreplacestate~sortSearchResultsByMarkerPositions
Sorts search results by marker positions. Make sure that the results are sorted in the same order as they appear in the document to avoid issues with the
find next
command. Apparently, the order of the results in the state might be different than the order of the markers in the model.Parameters
model : Model
results : Array<FindResultType>
Returns
Array<FindResultType>