-
-
Notifications
You must be signed in to change notification settings - Fork 38
Implemented completions for various shell #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
base: main
Are you sure you want to change the base?
Conversation
|
This is still work in progress (Works fine with Bash but not tested yet with others), But If anyone would like to, Do test it out and tell me its flaws :) |
|
You can use the function in clap to generate completions, not by writing in hand For example https://github.com/neocmakelsp/neocmakelsp/blob/master/src%2Fshellcomplete.rs#L1-L16 |
| } | ||
| } | ||
| None => { | ||
| _none => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep it as None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay 👍️
|
Hi @Decodetalkers, |
|
There were 2 more shells which we can implement for using |
I think just printing the completions is enough, if we need to install it to some place, we maybe need to think about it more. If just printing, then it is just the job of packagers. |
|
Side note: clap_complete_nushell can be used for generating |
|
Ahh! Thanks for mentioning this |
Implements auto-completion for various shells such as Bash, fish, zsh, powershell, elvish etc
Example:
or