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

Add tab auto-completion #2

Open
Satharus opened this issue Oct 2, 2020 · 3 comments
Open

Add tab auto-completion #2

Satharus opened this issue Oct 2, 2020 · 3 comments
Labels
enhancement New feature or request up for grabs

Comments

@Satharus
Copy link
Owner

Satharus commented Oct 2, 2020

Tab auto completion is pretty much standard on all shells, I've been wanting to add it but anyone is welcome to try this as a Hacktoberfest 2020 contribution :D!

I am trying to keep dependencies to a minimum, so using GNU readline is not an option, sadly.

@Satharus Satharus added enhancement New feature or request good first issue Good for newcomers hacktoberfest up for grabs labels Oct 2, 2020
@SuchismitaDhal
Copy link

I would like to work on it! Can you assign me the issue?

@Vamsi995
Copy link
Contributor

Vamsi995 commented Oct 6, 2020

Is this issue still open?

@Satharus
Copy link
Owner Author

Satharus commented Oct 6, 2020

@Vamsi995 Yes

If you'd like to tackle it go ahead :D

I've added my own implementation of readline and there is a conditional for tab input from which you can call the autocomplete functions:

Chell/src/chad-readline.c

Lines 102 to 105 in 6815ed1

else if (input == '\t')
{
//code for autocomplete
}

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

Successfully merging a pull request may close this issue.

3 participants