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

Suggestion: fuzzy search #402

Open
unlocomqx opened this issue Mar 27, 2022 · 2 comments
Open

Suggestion: fuzzy search #402

unlocomqx opened this issue Mar 27, 2022 · 2 comments
Labels

Comments

@unlocomqx
Copy link

Is your feature request related to a problem? Please describe.
I'd like to jump to a symbol by using fuzzy search

Describe the solution you'd like
For example to jump to the variable product_config, I can type pc

Describe alternatives you've considered

Additional context
It would be also great to be able to jump to any symbol, even props like option.id_option_group (for example using iog)

@breandan
Copy link
Collaborator

breandan commented Mar 27, 2022

Hey, thank you for the suggestion. I've thought about how to implement what you're describing and I think it might be possible but will require rearchitecting our tag assignment algorithm to match strings within a small edit distance using an algorithm similar to Norvig's spell checker. There are several conventions including CamelCase, snake_case and point.case but I think they can be unified into a single algorithm. We would need to test it to ensure tag collisions are very rare. PR's welcome!

@unlocomqx
Copy link
Author

Thank you for looking into this, I appreciate it!

@breandan breandan changed the title Suggestion: Symbol mode Suggestion: fuzzy search Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants