taskipy icon indicating copy to clipboard operation
taskipy copied to clipboard

Implement Autocomplete Feature for Command Entry

Open kamajus3 opened this issue 10 months ago • 5 comments

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.

kamajus3 avatar Apr 26 '24 18:04 kamajus3

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"?

kamajus3 avatar Apr 28 '24 20:04 kamajus3

@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)?

eugenetriguba avatar May 19 '24 15:05 eugenetriguba

Exactly @eugenetriguba

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

kamajus3 avatar May 19 '24 15:05 kamajus3

I would like to work on these features.

kamajus3 avatar May 21 '24 12:05 kamajus3

@carl0smat3us Go for it, thank you 👍

eugenetriguba avatar May 21 '24 12:05 eugenetriguba