Yegappan wrote:

> The support for searching for fuzzy matches with the
> vimgrep command was recently added (8.2.2813).
> 
> In the current implementation, each line in a specified file(s)
> is compared against the supplied search string (fuzzy match)
> and if there is a match, then the line is added to the
> quickfix list.
> 
> The matches are not sorted by the fuzzy match score. So the
> line that has the best match for the supplied string may be
> present later in the quickfix list.
> 
> Should we order the matches by the fuzzy match score so that
> the best matches show up earlier in the quickfix list? One
> downside to this approach is that the entries in the quickfix
> list will not be sorted by the file name and the line number
> and they will be mixed across files.

:vimgrep was made to find matches and skip non-matches, it hasn't been
used for using a match score.  Thus I think that's how it should keep
working by default.

In some cases the sorting by score could be useful.  Can we sort after
:vimgrep has finished?  Or would it need to be another flag or extra
flag? 

-- 
hundred-and-one symptoms of being an internet addict:
191. You rate eating establishments not by the quality of the food,
     but by the availability of electrical outlets for your PowerBook.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/202104291031.13TAVr8D3217776%40masaka.moolenaar.net.

Raspunde prin e-mail lui