-
Notifications
You must be signed in to change notification settings - Fork 181
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
Complete notebook files in ZSH completion #86
Comments
This seems to be a zsh question, rather than a jupyter_core issue. I suggest to close this issue as off-topic. |
this repo contains the ZSH file completions-zsh this is a feature request for that file, therefore this issue was filed in the ideal place. sorry if i didn’t make that clear: i want to improve the ZSH completions here. |
Has any progress been made on this issue? |
Not as far as I known. Would you like to work on it? |
I don't have much spare time, by considering nobody else has replied, I'll take a crack at it. |
Hi, I’m trying to get
jupyter notebook <tab>
to show me both subcommands and notebook files as options here.sadly i don’t seem to get what’s going on. whatever i tried, it throws errors at some point.
can somebody explain how it works? my progress:
${(P)subcmd}}
means “expand to the value of the variable named$subcmd
”. i.e. ifsubcmd=notebook
, it expands to$notebook
, which is previously set to the output of$(jupyter notebook --help-all | grep … | sed …)
so
${(P)subcmd}}
aka$notebook
(in one branch) holds the_arguments
-formatted options to thenotebook
subcommand_${subcmd}_cmds
aka_notebook_cmds
(in one branch) holds_describe
output.below my most recent attempts:
eval-string
at some point it prints the stuff instead of using it… do i have to do this? is there a better way?
_alternative … "subcommands:subcommands:{$(_${subcmd}_cmds && echo ${(P)subcmd})}"
function
huh? can’t i redefine functions? or what’s wrong
The text was updated successfully, but these errors were encountered: