dunovank / jupyter-themes

Custom Jupyter Notebook Themes
MIT License
9.76k stars 1.06k forks source link

Add tab completion using argcomplete #466

Open S1M0N38 opened 1 year ago

S1M0N38 commented 1 year ago

With very few code changes tab completion can be add to jt cli.

I found this very useful when trying to set new theme. I type jt -t and then I press Tab: all available themes are listed below so it's easy to chose. Moreover when I type jt -t darkbr and the press Tab, it autocomplete to jt -t darkbronco avoiding any typos.

Completions are enable for jt commands and -t, -f, -nf, -tf flags.