Hacker News new | ask | show | jobs
by FrozenCow 784 days ago
Completions need to do arbitrary computation. A command like `git switch` needs to find what branches are available in the repository.
1 comments

True, but you can represent that in the db as a a CLI invocation to run in a subshell.

The big gain from something like carapace or my theoretical SQLite-based completion system is faster startup time. I had to remove zsh-completions from my shell setup as it added too much to the startup time (https://github.com/bbkane/dotfiles/blob/master/zsh/README_no...)