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

Do you mean XXXX Generator? #20

Closed
1 task done
cpreston321 opened this issue Feb 7, 2024 · 2 comments · Fixed by #25
Closed
1 task done

Do you mean XXXX Generator? #20

cpreston321 opened this issue Feb 7, 2024 · 2 comments · Fixed by #25
Labels
enhancement New feature or request

Comments

@cpreston321
Copy link
Member

cpreston321 commented Feb 7, 2024

Describe the feature

If they misstyped pm-isntall we warn them and say do you mean pm-install ? Kinda silly but it's nice to have small things like this since there isn't no intelisense.

Additional information

  • Would you be willing to help implement this feature?
@pi0
Copy link
Member

pi0 commented Feb 7, 2024

That would be a nice idea! We might use fuzzy search for available generators. There are couple of "did you mean" npm packages I let you make some research if found a lightweight and modern one. (otherwise we can also use fuse.js or make an inline fork of of of them)

@pi0 pi0 added the enhancement New feature or request label Feb 7, 2024
@cpreston321
Copy link
Member Author

I found https://www.npmjs.com/package/didyoumean2 which seems promising.

@cpreston321 cpreston321 mentioned this issue Feb 7, 2024
8 tasks
@pi0 pi0 closed this as completed in #25 Feb 7, 2024
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

Successfully merging a pull request may close this issue.

2 participants