You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use argcomplete to generate the actual zsh completion functions for a program? My app startup is quite slow thanks to some imports that take a long time, and that load time finds its way to argcomplete as well. It seems like every time I press tab it's going through my program so it's super slow.
The text was updated successfully, but these errors were encountered:
No, argcomplete does not support the generation of static completions. While possible, this would be a complex set of extra logic and it would lose the key advantage that argcomplete offers and is typically used for (dynamic completion of values).
@mil-ad maybe you have your python startup script inside your module folder.
If you put it outside, and put the app import statements after argcomplete.autocomplete(parser) it works fine and fast (yes do not put the input statement at the top of the file like you normally should do) :)
Is it possible to use argcomplete to generate the actual zsh completion functions for a program? My app startup is quite slow thanks to some
import
s that take a long time, and that load time finds its way to argcomplete as well. It seems like every time I press tab it's going through my program so it's super slow.The text was updated successfully, but these errors were encountered: