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

could your add tab completion #23

Open
blacktop opened this issue Sep 10, 2017 · 8 comments
Open

could your add tab completion #23

blacktop opened this issue Sep 10, 2017 · 8 comments

Comments

@blacktop
Copy link

that is the only feature from makefiles that I would miss

@blacktop
Copy link
Author

maybe a mmake zsh completions?

@zph
Copy link
Collaborator

zph commented Sep 21, 2019

Thanks for the suggestion. I'm happy to accept a PR that enables this.

@blacktop
Copy link
Author

are you opposed to using cobra for CLI? I think it can auto-gen bash/zsh completions.

@zph
Copy link
Collaborator

zph commented Sep 22, 2019 via email

@tj
Copy link
Owner

tj commented Sep 23, 2019

hmm I had make TAB working for targets until I just updated from master haha (not sure how that messed anything up), trying to find where I had my autocomplete config and I'll post it here.

This may be a good reason to avoid color in the output, since you can use make help output in the completion script, but we could provide something like make completions or similar as well with the list

@zph
Copy link
Collaborator

zph commented Sep 23, 2019

Sounds like this would work in a bash environment for basic completions: https://stackoverflow.com/a/54094920 (bash-completions).

@zph
Copy link
Collaborator

zph commented Sep 23, 2019

There are also some shell configs in SO that list how to do varying qualities of this :D.

@tj
Copy link
Owner

tj commented Sep 24, 2019

Ahhh I think you're right, pretty sure that's the one I had, not sure how I broke it haha, it seemed to work good though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants