-
Notifications
You must be signed in to change notification settings - Fork 132
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
having the completions with cargo make and zsh #590
Comments
Thanks, i'll follow up on this one soon. I already have done it for bash, so i'm hoping to do it for zsh would be simple (no idea). |
i hope this helps https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org I tried to do it but it is beyond me :) |
@woss i never used zsh and their auto completion scripts looks like a nightmare. see doc: script: autoload -U +X compinit && compinit
autoload -U +X bashcompinit && bashcompinit
# make sure to update the path based on your file system location
source ./extra/shell/makers-completion.bash would love your feedback |
sure, i'll let you know as soon as possible |
so thats how auto complete looks like in zsh :) ya i never used it but now i understand why they have built the auto complete api the way they did. anyhow, it means that whatever i provided doesn't really give you the best solution. as for why makers and not cargo make. i'm not sure about zsh, but for bash, the auto complete file is based on the first command. so if i want to support cargo make auto complete, it means i'm taking over the cargo auto complete. that is an issue. might be wrong here, but not sure i can solve that one. |
good idea to keep it open. I'm not giving up on learning the zsh completion, which is truly hard to learn. :)
this is how the zsh completes the |
Hi there! Also to be sure that I understand what you @woss were requesting, if this is what was requested I do not mind preparing a PR |
that would be great. |
This is it |
Hi guys, In the past few years, I didn't do much rust or used cargo-make. I'm glad to see a new PR that introduces this feature. When I get back to rust I will use cargo-make for sure :) |
I started to move my scripts to the
Makefile.toml
and it seems to me that I will have many tasks. I would like my coworkers don't have to search and find the task names instead of having them as completions. The current sourcing only works with makers and on bash, we are using zsh and to be specific https://github.com/romkatv/zsh4humansIt is an incredibly good setup with awesome completions which you can find here.
I am not any good in zsh programming and i believe that the cargo make ...completion would be a great addition and excellent UX with this project.
The text was updated successfully, but these errors were encountered: