find-and-replace/findandreplacestate
module
Classes
module:find-and-replace/findandreplacestate~FindAndReplaceState
Type Definitions
module:find-and-replace/findandreplacestate~FindCallbackFindCallbackResultdeprecatedmodule:find-and-replace/findandreplacestate~FindCallbackResultmodule:find-and-replace/findandreplacestate~FindCallbackResultObject
Functions
sortSearchResultsByMarkerPositions( model, results ) → Array<FindResultType>internalmodule:find-and-replace/findandreplacestate~sortSearchResultsByMarkerPositionsSorts 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 nextcommand. Apparently, the order of the results in the state might be different than the order of the markers in the model.Parameters
model : Modelresults : Array<FindResultType>
Returns
Array<FindResultType>