You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the implementation seems to allow a list of characters that are allowed to trigger a search - maybe this is the cause of the issue (I have not defined the ö character to be a trigger character):
However, utf-8 contains a very large amount of possible characters 😄 I think it's a very bad idea to list all of them - I think it will not perform well. Do you think it would be possible to allow sources to define if the character is acceptable with a function?
Because lua regexes do not apparently support utf-8 either, I think they will not work. Alternatively, chatgpt gave me vim.lpeg.R("\128\255") which seems to match many unicode characters well (there are examples in the tests)
The text was updated successfully, but these errors were encountered:
This happens with the buffer source too. The culprit is the code that gets the candidate words, which uses a regex that only detects sequences of ASCII characters (see #130 ). I am currently modifying blink locally to use the regex [\p{Latn}][\p{Latn}-]{2,31}[\p{Latn}], which captures any latin-based word (and includes hyphens).
Feature Description
Currently it's not possible to trigger a search with https://github.com/mikavilpas/blink-ripgrep.nvim if the last character of the current word is a special character:
utf8-trigger.mov
I noticed the implementation seems to allow a list of characters that are allowed to trigger a search - maybe this is the cause of the issue (I have not defined the ö character to be a trigger character):
https://github.com/mikavilpas/blink.cmp/blob/f1b8abe2ca7f8b369c8cd48ddfb991a690d20345/lua/blink/cmp/sources/lib/init.lua?plain=1#L71-L86
However, utf-8 contains a very large amount of possible characters 😄 I think it's a very bad idea to list all of them - I think it will not perform well. Do you think it would be possible to allow sources to define if the character is acceptable with a function?
Because lua regexes do not apparently support utf-8 either, I think they will not work. Alternatively, chatgpt gave me
vim.lpeg.R("\128\255")
which seems to match many unicode characters well (there are examples in the tests)The text was updated successfully, but these errors were encountered: