Skip to content

Please exclude minus sign - from fuzzy matching. #1792

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
manofcosine opened this issue May 20, 2025 · 0 comments
Open

Please exclude minus sign - from fuzzy matching. #1792

manofcosine opened this issue May 20, 2025 · 0 comments
Labels
feature New feature or request

Comments

@manofcosine
Copy link

manofcosine commented May 20, 2025

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.

Image

Image

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.

  1. 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.

  2. Or make the fuzzy matcher smarter.

Is there an existing solution? If not, what can I do to help?

@manofcosine manofcosine added the feature New feature or request label May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant