Hi, On Mon, Sep 14, 2020 at 2:18 AM Sergey Vlasov <[email protected]> wrote:
> With the proposed API there is no way to know what portions of the input > are matched. > > Example: > > :echo matchfuzzy(['clay', 'crow'], "cay") > < results in ['clay']. > > > It would be more useful to also return the start position and the end > position of the match, similar to matchstrpos(): > > [ > ["clay", > ["c", 0, 0], > ["ay", 2, 3] > ] > ] > > > Internally, the fuzzy_match() function does have this information in an array (matches). But returning this for a large number of matched items will increase the run time of this function. As Bram asked, what is the use case for this? - Yegappan -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAAW7x7k6VLQ6LkYajzrrZ0Dqi%3DbVEGRDyR_uiU_3w1Bbrx1_Lg%40mail.gmail.com.
