zsh-completions icon indicating copy to clipboard operation
zsh-completions copied to clipboard

Pip's autocompletion does not support package names

Open ghost opened this issue 10 years ago • 9 comments

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

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

ghost avatar Dec 20 '13 05:12 ghost

+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".

blueyed avatar Jan 06 '14 15:01 blueyed

Any news on this?

xuhdev avatar Mar 08 '14 23:03 xuhdev

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.

msva avatar Sep 27 '14 10:09 msva

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.

blueyed avatar Sep 28 '14 16:09 blueyed

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" ;)

msva avatar Sep 28 '14 19:09 msva

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.

blueyed avatar Jan 27 '15 01:01 blueyed

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)

nicoulaj avatar Nov 13 '18 20:11 nicoulaj

@blueyed Did you create a repo for this?

dufferzafar avatar Apr 11 '20 22:04 dufferzafar

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

sisrfeng avatar Sep 19 '21 13:09 sisrfeng