mmake icon indicating copy to clipboard operation
mmake copied to clipboard

could your add tab completion

Open blacktop opened this issue 8 years ago • 8 comments

that is the only feature from makefiles that I would miss

blacktop avatar Sep 10 '17 23:09 blacktop

maybe a mmake zsh completions?

blacktop avatar Nov 10 '17 20:11 blacktop

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

zph avatar Sep 21 '19 12:09 zph

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

blacktop avatar Sep 22 '19 18:09 blacktop

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 [email protected] 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.

zph avatar Sep 22 '19 19:09 zph

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

tj avatar Sep 23 '19 12:09 tj

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

zph avatar Sep 23 '19 15:09 zph

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

zph avatar Sep 23 '19 15:09 zph

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

tj avatar Sep 24 '19 11:09 tj