Skip to content
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

Abbreviation-like search #8

Open
sergei-dyshel opened this issue Oct 2, 2015 · 2 comments
Open

Abbreviation-like search #8

sergei-dyshel opened this issue Oct 2, 2015 · 2 comments

Comments

@sergei-dyshel
Copy link

Sometimes, in large repos, it may be helpful to limit pattern to match only beginnings of words. For example, ctpy will match ctrl.py but won't match control.py. How hard is to add such feature to cpsm? Which code is responsible for letter-by-letter matching process?

@nixprime
Copy link
Owner

nixprime commented Oct 4, 2015

cpsm's ranking algorithm is a bit complicated, but it already includes matching at the beginning of words as a very strong signal. Do you have a specific example of bad behavior?

@sergei-dyshel
Copy link
Author

I agree that cpsm definitely prefers matches at beginning of words but for some case the "signal" is not strong enough.

Besides, sometimes there is a strange delay of 1-2 which is not tolerable for me.

Anyway, I'm currently working on CtrlP's matcher which will match only at beginnings of words. I can send you link when it's published, if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants