]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1214: matchfuzzy() can be improved for camel case matches v9.1.1214
authorglepnir <glephunter@gmail.com>
Sun, 16 Mar 2025 20:24:22 +0000 (21:24 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 16 Mar 2025 20:29:19 +0000 (21:29 +0100)
commit28e40a7b55ce471656cccc2260c11a29d5da447e
treeca68b25dd93c9596706fdadbf72f671d54abf323
parent250739d442b51ba76589d6eb67672d95645527ec
patch 9.1.1214: matchfuzzy() can be improved for camel case matches

Problem:  When searching for "Cur", CamelCase matches like "lCursor" score
          higher than exact prefix matches like Cursor, which is
          counter-intuitive (Maxim Kim).
Solution: Add a 'camelcase' option to matchfuzzy() that lets users disable
          CamelCase bonuses when needed, making prefix matches rank higher.
          (glepnir)

fixes: #16504
closes: #16797

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/builtin.txt
src/proto/search.pro
src/quickfix.c
src/search.c
src/testdir/test_matchfuzzy.vim
src/version.c