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-completion for CLI options, file paths, etc. #199

Open
n8marti opened this issue Oct 18, 2024 · 5 comments
Open

Add tab-completion for CLI options, file paths, etc. #199

n8marti opened this issue Oct 18, 2024 · 5 comments
Labels
enhancement New feature or request research Need to dig into more
Milestone

Comments

@n8marti
Copy link
Collaborator

n8marti commented Oct 18, 2024

This would be muy nice to have. Need to find out what is required, though.

@n8marti n8marti added enhancement New feature or request research Need to dig into more labels Oct 18, 2024
@n8marti n8marti added this to the Release 1.0.0 milestone Oct 18, 2024
@ctrlaltf24
Copy link
Contributor

Needs to be done per-shell, each shell has their own completion format/logic. I've done it before for zsh, not trivial, and would need to be kept up to date

@thw26
Copy link
Collaborator

thw26 commented Oct 23, 2024

Perhaps we can target just the top three or four shells? Most are probably using bash.

@ctrlaltf24
Copy link
Contributor

Keep in mind the more we have, the more we need to maintain. bash + maybe zsh if one of us uses it actively is probably good enough, it is a nice to have after all, doesn't impact our journey w/ God

@ctrlaltf24
Copy link
Contributor

Looks like this can be done programmatically and be kept up to date! https://github.com/kislyuk/argcomplete I've seen some CLIs bundle their completion in their code (for example my_binary --generate-completion bash would generate the bash completions for use in the shell), that way it's always up to date

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

No branches or pull requests

3 participants