Hi Bram,

On Thu, Apr 29, 2021 at 3:31 AM Bram Moolenaar <[email protected]> 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?
>

We will need to add another flag to sort the fuzzy matches by score.
What about using the flag 's' for sort?

Regards,
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/CAAW7x7kx7%2BhwhAQyFjURbQ%3DcDb1M24LOVZFkgcddbzfb3YnycA%40mail.gmail.com.

Raspunde prin e-mail lui