Implemented completions for various shell#132
Implemented completions for various shell#132Rishik-Y wants to merge 17 commits intowaycrate:mainfrom
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 => { |
|
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 |
|
@Rishik-Y |
|
Ah! I am really sorry, I became busy in other side projects and I totally forgot about it! |
Implements auto-completion for various shells such as Bash, fish, zsh, powershell, elvish etc
Example:
or