Hi, On Thu, Jul 15, 2021 at 7:50 PM naohiro ono <[email protected]> wrote:
> This is one of the criteria for fuzzy search scoring written in :h > fuzzy-match: > > - Matches after a camel case character or a path separator or a hyphen. > > I think it makes sense that matches after > > - a path separator or > - a hyphen > > will affect the score, but I wonder if it is true that matches AFTER > > - a camel case character > > will also affect. (I'm assuming here that "a camel case character" stands > for an uppercase letter in a lower-camel-cased word, e.g. "C" in > "camalCase".) > > So I think this may be some kind of mistake. Perhaps this patch may fix it: > > diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt > index 962882765..8e2d8a45e 100644--- a/runtime/doc/pattern.txt+++ > b/runtime/doc/pattern.txt@@ -1472,7 +1472,8 @@ criteria: > - The number of characters (distance) between two consecutive matching > characters. > - Matches at the beginning of a word- - Matches after a camel case > character or a path separator or a hyphen.+ - Matches at a camel case > character.+ - Matches after a path separator or a hyphen. > - The number of unmatched characters in a string. > The matching string with the highest score is returned first. > > > Yes. The description looks good to me. The matches starting with a camel case character are given an additional score. 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/CAAW7x7mK9X6eNJzrXnFqw2qZgyzLPY-yDQFXgjPqnMi%2BVMuyqQ%40mail.gmail.com.
