On Thu, Apr 29, 2021 at 3:31 AM Bram Moolenaar <
Br...@moolenaar.net> wrote:
>
>
> 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?
>