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

add fuzzy matching completion #82

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

add fuzzy matching completion #82

wants to merge 3 commits into from

Conversation

trbjo
Copy link

@trbjo trbjo commented Jul 18, 2023

this commit adds a kind of fuzzy matching to zsh. example:

zshz <TAB> -> agkozak/zsh-z

with the previous behavior, zshz --complete could not resolve that.

If you do not want it to be the default behavior, I can add a flag to make it optional, for example ZSHZ_FUZZY.

this commit adds a kind of fuzzy matching to zsh. example:

zshz <TAB> -> agkozak/zsh-z

this was not possible before.
@agkozak agkozak self-assigned this Jul 19, 2023
new approach: we first try matching whole words as in the original and
fall back to fuzzy if there are no matches
@agkozak
Copy link
Owner

agkozak commented Jul 20, 2023

Thanks for proposing a contribution! I'm on vacation this week, but I'll take a look at your work in just a few days, OK?

always use fuzzy but let the full strings take precedence over the
fuzzy matches
@agkozak
Copy link
Owner

agkozak commented Aug 2, 2023

OK, I've put your code on the fuzzy branch so that I can play with it. I should have feedback in the next couple of days.

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

Successfully merging this pull request may close these issues.

2 participants