Skip to content

add fuzzy matching completion#82

Open
trbjo wants to merge 3 commits into
agkozak:masterfrom
trbjo:master
Open

add fuzzy matching completion#82
trbjo wants to merge 3 commits into
agkozak:masterfrom
trbjo:master

Conversation

@trbjo

@trbjo trbjo commented Jul 18, 2023

Copy link
Copy Markdown

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

agkozak commented Jul 20, 2023

Copy link
Copy Markdown
Owner

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

agkozak commented Aug 2, 2023

Copy link
Copy Markdown
Owner

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