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

Implement Autocomplete Feature for Command Entry #75

Open
carl0smat3us opened this issue Apr 26, 2024 · 5 comments
Open

Implement Autocomplete Feature for Command Entry #75

carl0smat3us opened this issue Apr 26, 2024 · 5 comments

Comments

@carl0smat3us
Copy link

As a new user of this cli, I found it extremely useful for saving time when typing commands in the terminal. However, I believe we can further improve the user experience by implementing autocomplete functionality for command entry.

Autocomplete would speed up the process of entering commands by suggesting conclusions based on user input, reducing the need for manual typing and minimizing errors. This feature would not only save time but also improve the overall usability of the cli.

@carl0smat3us
Copy link
Author

And with autocomplete functionality, we can suggest an option when you've already entered an incorrect command.

For example, if you typed:

task linr

We could provide a suggestion like this:

Could not find task "linr", Did you mean "lint"?

@eugenetriguba
Copy link
Collaborator

@carl0smat3us Hey Carlos, sounds like a great idea!

This reads as two different feature requests so I just wanted to reiterate and confirm this is what you're saying:

  • In terms of autocomplete, I'm a little unsure of what exactly you're getting at. Are you referring to shell-based tab completion? I'm most familiar with "autocomplete" behavior in CLIs as being able to press "tab" and it showing a list of options based on the text currently inputted. This is shell dependent and would need some work for each shell desired to be supported.

And with autocomplete functionality, we can suggest an option when you've already entered an incorrect command.

  • So when a user types in a task name that doesn't exist, instead of just "Could not find task abc", you're proposing it should also give a suggestion of the "closest" match (however that would be defined)?

@carl0smat3us
Copy link
Author

carl0smat3us commented May 19, 2024

Exactly @eugenetriguba

And in terms of autocomplete, I'm referring to shell-based autocomplete. We can prioritize some shells first

@carl0smat3us
Copy link
Author

I would like to work on these features.

@eugenetriguba
Copy link
Collaborator

@carl0smat3us Go for it, thank you 👍

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

No branches or pull requests

2 participants