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

Fuzzy search for zsh #151

Closed
arthurjdam opened this issue Apr 27, 2021 · 2 comments
Closed

Fuzzy search for zsh #151

arthurjdam opened this issue Apr 27, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@arthurjdam
Copy link

Completion Spec

Enhancement to fig's overall autocompletion. It's not mission-critical but since I'm so used to how zsh's autocomplete works, I feel like it should at least be put up for consideration.

Description

For zsh the tabbed autocomplete uses a fuzzy search, instead of fig's current substr-style.

Steps to reproduce

Using oh-my-zsh, go to a folder. For example containing the following:

~ ls
project-name-one
project-name-two
~ cd two

Expected result

If you now press "tab", it will auto-complete to project-name-two

Actual result

In this scenario, Fig would show no available autocompletions

@arthurjdam arthurjdam added the enhancement New feature or request label Apr 27, 2021
@mschrage
Copy link
Member

mschrage commented Apr 28, 2021

Hey @arthurjdam! Thanks for the suggestion. We actually have implemented this already! Right now it's behind a feature flag because there are still a few things left to fix.

If you would look to try it out now, you can run fig settings autocomplete.fuzzySearch true to turn it on.

@arthurjdam
Copy link
Author

Works as expected! Thanks @mattschrage !

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

No branches or pull requests

2 participants