Skip to content

Add tab completion #55

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

Open
colonelpopcorn opened this issue May 31, 2024 · 1 comment
Open

Add tab completion #55

colonelpopcorn opened this issue May 31, 2024 · 1 comment

Comments

@colonelpopcorn
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

The terminal should be able to autocomplete or show a list of close enough items to tab through. That way you can autocomplete predefined commands. In your example, you can create an array and do a switch/case or an includes call to determine if the right command was specified. You could even have this array be an object that could have a handler attached to be run when a match is found. Just a few thoughts, this looks great, thanks!

Copy link

Thank you for taking the time to submit an Issue!
You should get a response to this issue within one to two 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

No branches or pull requests

1 participant