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
The minus sign - is indeed part of file/directory names or other strings, however I think most programming languages consider - as an operator which is never part of variable names or function names.
For example, in C files, typical code format requires adding a space on both sides of an operator for readability, which is totally fine.
But, one could insert code without any spaces and format that line later, which causes trouble with blink.cmp as the fuzzy matching can not find any variable or function whose name has a minus sign -, or it just finds some random raw text with a minus sign -, which is never really needed.
I am one of the lazy guys who do not insert unnessary spaces while typing.
The inconsistancy is to complete a variable after a plus sign + or any other operator is smooth as lightning but to complete a variable after a minus sign - is totally lost...
Why is minus sign - so special?
Currently I have 2 suggestions.
Exclude minus sign - from fuzzy matching, which can be toggled as an option, also for backward compability as not many people need that as far as I see.
Or make the fuzzy matcher smarter.
Is there an existing solution? If not, what can I do to help?
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Feature Description
The minus sign
-
is indeed part of file/directory names or other strings, however I think most programming languages consider-
as an operator which is never part of variable names or function names.For example, in C files, typical code format requires adding a space on both sides of an operator for readability, which is totally fine.
But, one could insert code without any spaces and format that line later, which causes trouble with blink.cmp as the fuzzy matching can not find any variable or function whose name has a minus sign
-
, or it just finds some random raw text with a minus sign-
, which is never really needed.I am one of the lazy guys who do not insert unnessary spaces while typing.
The inconsistancy is to complete a variable after a plus sign
+
or any other operator is smooth as lightning but to complete a variable after a minus sign-
is totally lost...Why is minus sign
-
so special?Currently I have 2 suggestions.
Exclude minus sign
-
from fuzzy matching, which can be toggled as an option, also for backward compability as not many people need that as far as I see.Or make the fuzzy matcher smarter.
Is there an existing solution? If not, what can I do to help?
The text was updated successfully, but these errors were encountered: