Thursday, April 29, 2021

Re: What is fuzzy matching?

On Thu, Apr 29, 2021 at 2:26 PM Bram Moolenaar <Bram@moolenaar.net> wrote:
>
>
> Tony wrote:
>
> > The help for :vimgrep (in quickfix.txt with "Last change: 2021 Feb
> > 05", maybe that date is in error) now mentions an [f] flag without
> > saying what it does. One recent vim_dev thread makes me think that
> > with the 'f' flag "fuzzy matching" is used. So I used :helpgrep
> > \<fuzzy\> and found several mentions of fuzzy matching, but AFAICT
> > they all assume that the reader knows what fuzzy matching is. Nowhere
> > did I see the expression defined. So what is fuzzy matching?
>
> It appears a part of the patch didn't end up in the git commit:
>
> When the 'f' flag is specified, fuzzy string matching
> is used to find matching lines. In this case,
> {pattern} is treated as a literal string instead of a
> regular expression. See |matchfuzzy()| for more info
> about fuzzy matching.
>

Hm, even |matchfuzzy()| is not very enlightening, but I suppose it
isn't obvious to give aCartesian definition of something fuzzy. I'll
have to go with the set of examples above |matchfuzzypos()| and with
what rwmitchell said above.

Best regards,
Tony.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXswzWGhnYvHN_kyW8rO4_M-ssvPYstHhnr%2Bb6B3y2KyKw%40mail.gmail.com.

No comments:

Post a Comment