diff options
author | glepnir <glephunter@gmail.com> | 2025-03-18 15:44:45 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-03-27 08:19:25 +0800 |
commit | 162edf7b30dd4a98b85fa490d0dfd1a73db23b88 (patch) | |
tree | 4afcb9a8a753dfa0908802df078bc184e2bb3ad8 /runtime/doc | |
parent | ce590e207720ec53a4592882840725bf8540c7d5 (diff) | |
download | rneovim-162edf7b30dd4a98b85fa490d0dfd1a73db23b88.tar.gz rneovim-162edf7b30dd4a98b85fa490d0dfd1a73db23b88.tar.bz2 rneovim-162edf7b30dd4a98b85fa490d0dfd1a73db23b88.zip |
vim-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: vim/vim#16504
closes: vim/vim#16797
https://github.com/vim/vim/commit/28e40a7b55ce471656cccc2260c11a29d5da447e
Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/builtin.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 04d24e7a92..a4adfb3a63 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -6410,6 +6410,9 @@ matchfuzzy({list}, {str} [, {dict}]) *matchfuzzy()* given sequence. limit Maximum number of matches in {list} to be returned. Zero means no limit. + camelcase Use enhanced camel case scoring making results + better suited for completion related to + programming languages. Default is v:true If {list} is a list of dictionaries, then the optional {dict} argument supports the following additional items: |