This has been true the whole time, but I wanted to focus on other things first. I felt it would have been too much all at once.
If you are using bash and elm is on your PATH, all you need to do is type the following line:
complete -C elm elm
That will enable autocompletion in the current terminal tab. If you put it in your .bashrc you can get it in any new tab as well. Please let me know if you run into anything odd with it!
If you use not-bash, I have exposed a command to run to get suggestions:
elm ma<TAB> # elm autocomplete 1 ma
elm make --opt<TAB> # elm autocomplete 2 make --opt
The part in the comment is what you run to get the suggestions. autocomplete, followed by the index of the argument, followed by all the arguments.
We need to make little scripts so that zsh, fish, and others can benefit from this!
If you create one, please share it in #elm-dev. I want to:
- see if the elm autocomplete API is sufficient (e.g. point vs index)
- have those scripts ready to go (and as simple as possible) for folks installing once 0.19 is out
If it seems to work for folks in #elm-dev, post it in this thread so it is available more permanently!