-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo run --{example,bin,bench,test} tab completion #8871
Comments
It should already work, at least with bash. The source is here. Which shell are you using? The existing implementation is a bit of a hack, so perhaps it doesn't work in some situations. Quickly retrieving the target names is not currently possible. The long-term solution is intended to be #6645 where the |
I use GNOME Terminal 3.36.2 and it clearly doesn't work |
GNOME Terminal is a GUI terminal program which is the interface to the underlying shell. The shell is something like bash, zsh, or fish. Each shell has different shell completion, so it is important to know which one you are using, and to check that the completions are integrated properly. The exact method of integration will depend on the shell, OS, and how your startup scripts are setup. Do any of the completions work? If not, then maybe check that the completion is linked in properly for your environment. If completions are working, but just not the |
Yeah, I am wondering why |
Ah, looks like it was in fish but there was a bug probably, or maybe it was new. fish-shell/fish-shell#7566 |
Implement example completion for zsh Related issue #8871 #### Demo ![cargo_example_complete](https://user-images.githubusercontent.com/554281/134369988-c1d1d83e-0d61-4b8f-9b1d-ca5ca75e3723.gif)
Problem
If you want to run an example, you have to write it's full name in
cargo run --example <example_name>
. Name may be long and time is precious.Solution
It would be great to have a tab completion implemented. We already have a list of possible targets displayed (#6505).
Notes
This was already mentioned here
The text was updated successfully, but these errors were encountered: