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?

Yes, that can work.  When using both 'f' and 's' it would be the same.

I was thinking of perhaps using 'F', but using 's' makes more sense.

-- 
hundred-and-one symptoms of being an internet addict:
196. Your computer costs more than your car.

 /// 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/202104301114.13UBENRn3490672%40masaka.moolenaar.net.

Raspunde prin e-mail lui