Skip to content
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

zsh autocompletion file #47

Closed
anntzer opened this issue Aug 26, 2015 · 5 comments
Closed

zsh autocompletion file #47

anntzer opened this issue Aug 26, 2015 · 5 comments
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Aug 26, 2015

I have written a small zsh autocompletion file for jupyter, currently at http://pastebin.com/XW0nPWjG .
There seemed to be some interest in such a file for ipython (cf ipython/ipython#8767), but I guess it would make more sense to merge this into jupyter_core?
I haven't made this into a PR because I don't know where to put it in the source tree :-)

@Carreau
Copy link
Member

Carreau commented Aug 26, 2015

Well if it works with jupyter, +1, though the completion will work even if subcommand not availlable ?

I would create a /tools or whatever folder with this in it.

conda have a nice conda install argcomplete do we want something similar ?

@anntzer
Copy link
Contributor Author

anntzer commented Aug 26, 2015

Good catch, I just wrote this for whatever commands got installed by <linux-package-manager> install jupyter. A bit {la,bu}zy to test installing subcommands one at a time right now (I guess I can just pip install jupyter_core && pip install <subcommand> in a clean conda env?) but it should boil down to a bunch of if which jupyter-$subcmd; then commands=($commands $subcmd_help); fi in _jupyter_cmds.

@Carreau
Copy link
Member

Carreau commented Aug 26, 2015

A bit {la,bu}zy to test installing subcommands one at a time right now

Well I think it is fine if it completes and the subcommand is not availlable. It's not the end of the world,
and you are likely to know which command are availlable anyway.

@anntzer
Copy link
Contributor Author

anntzer commented Aug 26, 2015

fixed it.

@Carreau
Copy link
Member

Carreau commented Aug 28, 2015

Closed by #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants