Sign up (with export icon)

find-and-replace/findandreplacestate

Api-module icon module

Classes

Type Definitions

Functions

  • Chevron-right icon

    sortSearchResultsByMarkerPositions( model, results ) → Array<FindResultType>
    internal

    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>