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

History search results after the substring should not be fuzzy #95

Open
SephVelut opened this issue Jun 11, 2018 · 1 comment
Open

History search results after the substring should not be fuzzy #95

SephVelut opened this issue Jun 11, 2018 · 1 comment

Comments

@SephVelut
Copy link

SephVelut commented Jun 11, 2018

I thought disabling HISTORY_SUBSTRING_SEARCH_FUZZY would also disable search pattern *abc* but that's not the case.

local search_pattern="*${(j:*:)_history_substring_search_query_parts[@]//(#m)[\][()|\\*?#<>~^]/\\$MATCH}*"

Pattern always starts with a *. Fuzzy searching as I imagined would leave the position of a substring the same in the query. Search results for disabled fuzzy searching should always start with abc then match fuzzy abc*d*

@SephVelut SephVelut changed the title History search results after the substring History search results after the substring should not be fuzzy Jun 11, 2018
@SephVelut
Copy link
Author

Opened a PR #96

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

No branches or pull requests

2 participants