Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uptab completions #278
Comments
This comment has been minimized.
This comment has been minimized.
FWIW, in my case I use Disclaimer: I don't really grok zsh internals and perhaps there is a way to enable P.S. I don't really like that CLI tools modify my zshrc, I usually undo/modify what they do |
This comment has been minimized.
This comment has been minimized.
|
I've just added the ability to generate bash completions for a cli with And a demo: I have a branch on my fork where I generated the completions, although before I'd put in a PR there are few opinionated portions that I'd rather a project maintainer look at prior
Granted this is only a Bash completion script, but it's at least a step in a direction (if it's the right direction is TBD). I personally use ZSH, so that's next on my list. |
This comment has been minimized.
This comment has been minimized.
|
@kbknapp Wow, that's awesome! |
This comment has been minimized.
This comment has been minimized.
wuranbo
commented
Jul 2, 2016
|
go go go |
This comment has been minimized.
This comment has been minimized.
|
@kbknapp Sweet! That's really clever. I'm fine doing the conversion, but I'd still like to wait until we understand how to install them before pulling trigger. |
This comment has been minimized.
This comment has been minimized.
|
@kbknapp Any progress now? It's a pain to me when auto-completion is unable to use. |
This comment has been minimized.
This comment has been minimized.
|
@knight42 I haven't added ZSH support yet. Once I do I'll post back here. |
This comment has been minimized.
This comment has been minimized.
|
@kbknapp Great! It's better to generate the completion script automatically. I am looking forward to it! |
kbknapp
added a commit
to kbknapp/multirust-rs
that referenced
this issue
Oct 24, 2016
This comment has been minimized.
This comment has been minimized.
|
I've just added ZSH support to Here's a gif of the ZSH support though: |
This comment has been minimized.
This comment has been minimized.
|
@kbknapp Awesome, love it! |
kbknapp
added a commit
to kbknapp/multirust-rs
that referenced
this issue
Oct 24, 2016
This comment has been minimized.
This comment has been minimized.
est31
commented
Oct 26, 2016
|
Thanks for the autocompletion feature @kbknapp I really like it! Would it be possible to extend the tab completion support to include things rustup can derive? Like when you type Its obviously more complicated, but should be doable, no? flatpak manages to do this btw, you can press |
This comment has been minimized.
This comment has been minimized.
|
@est31 not yet, but that is the exact topic of clap-rs/clap#568 |
This comment has been minimized.
This comment has been minimized.
|
I should add you can do this manually, but it's not built in to clap yet :will: |
nodakai
added a commit
to nodakai/rustup.rs
that referenced
this issue
Apr 23, 2017
This comment has been minimized.
This comment has been minimized.
|
I think this can be considered complete? |


brson commentedApr 6, 2016
Hm, after thinking about this further, tab completions are going to be tricky. rustup does not require root to install but completions are usually installed to /etc. I really don't want to require admin just for that. I wonder if we might further frob the shell startup files (like we already to to modify PATH) to load completions.
Source.