-
-
Notifications
You must be signed in to change notification settings - Fork 466
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
Tab completion: rye run x
should yield completion to the called executable
#213
Comments
This has been achieved nicely in 99designs/aws-vault for Their implementation uses a switch on |
I'm not sure exactly what the ask is here. You can already generate a completion script. Is the ask to automatically install these? rye self completion -s zsh |
No, sorry, not that. The ask is that This would mean you could use tab completion for commands which are run using |
Not sure if it's possible to actually do this without generating out a really complex script. The issue is that the completion would actually depend on what's configured in the scripts or what can be found. It's not invoking directly a script on |
I've written a number of CLI apps which do this, using the patterns in the scripts I linked here: #213 (comment) - do you not think those would work in the case of I'm not super au-fait with rust, but I might have a go and see if I can get something working |
The issue here is not Rust, but that the command after |
oooh, valid point 🤦🏻♂️ I had my head in "general-task-runner" mode, not "we're running commands in a very specific environment" mode. completely misread this:
|
I think if this ever gets fixed it might be possible to do something: clap-rs/clap#1232 |
Closing this for now as I do not believe work here will actually take place. |
I'm asking this here since it's related. I'm not a shell expert but here is what I know from observation; when shells can't provide completion then the suggestions are files/directories in the current working directory. For some reason, In Usage: I usually run tests found in a specific directory and it would be nice if I can get completion working to make a selection quickly. |
I agree with @abdulhaq-e . At the moment |
Steps to Reproduce
rye run pyt <tab>
rye run -- pyt <tab>
Expected Result
I'd expect to see the completions of the called command
Actual Result
No completions, bell sounds
Version Info
rye 0.2.0
commit: 0.2.0 (d875838 2023-05-23)
platform: macos (aarch64)
self-python: [email protected]
symlink support: true
Stacktrace
No response
The text was updated successfully, but these errors were encountered: