zsh-users / zsh-completions

Additional completion definitions for Zsh.
Other
6.96k stars 714 forks source link

Pip's autocompletion does not support package names #194

Open ghost opened 10 years ago

ghost commented 10 years ago

May be we could adopt oh-my-zsh's version.

https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/pip

blueyed commented 10 years ago

+1

It would be nice to merge these versions: while oh-my-zsh's version has support for package names (a very inportant feature), it is missing pip commands like "show".

xuhdev commented 10 years ago

Any news on this?

msva commented 10 years ago

as far as I checked, pip has upstream completion now. (can be generated by pip/runner.py completion --zsh) So, I'd remove it now, as repository rules suggests.

blueyed commented 10 years ago

pip's own completion appears to be not that sophisticated.

E.g. it does not complete files after pip install -r, has no description for the commands etc.

Maybe pip's completion should then get merged with the previous one from zsh-completions and oh-my-zsh's then.

msva commented 10 years ago

Probably. But that is definitely pip's upstream issue (you can point them on https://github.com/zsh-users/zsh-completions/blob/b91db13f5cf50ef3a303c6926c84bfb37aab6c85/src/_pip (as part of this repo) and to o-m-z version, and ask them to fetch it and adopt) ;)

Although, I bet they'll say "patches are welcomed" ;)

blueyed commented 9 years ago

I've gave it a shot today: https://gist.github.com/blueyed/54a257c411310a28805a

Will probably create a repo for it in the next days / weeks, and ask for inclusion in pip or zsh.

nicoulaj commented 5 years ago

Reopening as the upstream pip completion is bad, and @blueyed's one seems a lot better (even though PyPI's XMLRPC API seems to be dead, so it needs update)

dufferzafar commented 4 years ago

@blueyed Did you create a repo for this?

sisrfeng commented 3 years ago

Relevant page

https://www.zsh.org/mla/workers/2015/msg00852.html 【 ask for the feature at 2015】 https://github.com/zsh-users/zsh-completions/commit/890f3701 【out dated】 https://gist.github.com/blueyed/54a257c411310a28805a 【Waiting for update, but no news so far】

In my zshrc :

antigen use oh-my-zsh  
antigen bundle pip  

Nothing happen when I press tab after tensorboard --

Any solution? Thx