tj / mmake

Modern Make
1.72k stars 42 forks source link

could your add tab completion #23

Open blacktop opened 7 years ago

blacktop commented 7 years ago

that is the only feature from makefiles that I would miss

blacktop commented 6 years ago

maybe a mmake zsh completions?

zph commented 5 years ago

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

blacktop commented 5 years ago

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

zph commented 5 years ago

What auto complete are you wishing for?

Is it for mmake, ie update and help. Or for make itself, as a pass through from mmake?

On Sep 22, 2019, at 19:17, blacktop notifications@github.com wrote:

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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

tj commented 5 years ago

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 commented 5 years ago

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

zph commented 5 years ago

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

tj commented 5 years ago

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