Highlights
- Fuzzy matching:
- Always prefer continuous matches over fuzzy matches (i.e.
foo
onfoobar
beatsf_o_o_bar
) (Change made in v1.5.0 but forgot to mention it) OFFSET_PREFIX_BONUS
for matching second character, if the first character is not a letter and not matched (i.e.h
on_hello
)- Lua implementation no longer ignores
score_offset
- Fixed regression where text after the cursor was not being replaced
Features
- add
.get_context()
function to API (6f3ed55) - add
count
option toselect_next
andselect_prev
(796a00e), closes #569 - add
OFFSET_PREFIX_BONUS
to lua matcher (2faf063) - add terminal_command to the completion context (#2001) (b163deb)
- bump frizbee to 0.5.0 with offset prefix bonus (b6ea46e)
- lazily get
TM_SELECTED_TEXT
for snippets (04f9f22), closes #1998 - snippet: support variables in placeholders (277203b), closes #950
- update menu position on selection with dynamic direction priority (d89b7e4), closes #2000
Bug Fixes
- apply score_offset and snippet.score_offset with lua matcher (6c1d41e)
- applying score_offset on nil match (3545f6d)
- cmdline: avoid doubling variable scope prefixes in expression (60f446a), closes #1994
- cmdline: improve prefix handling to avoid duplication in expression (af22c52), closes #2005
- eager error in snippets (adaff22)
- log errors from downloader and fallback to lua (b812f16), closes #1999
- revert #1985 "use edit range start for compensation instead of old cursor" (4663e23), closes #2013
Full Changelog: https://github.com/Saghen/blink.cmp/compare/v1.5.1...v1.6.0