4 ms·
Working on generating zsh tab autocompletion for my CLI framework. I'm finding it difficult because zsh makes completion surprisingly complicated and the zsh do
by bbkane 2y ago
Working on generating zsh tab autocompletion for my CLI framework. I'm finding it difficult because zsh makes completion surprisingly complicated and the zsh docs have a lot more descriptions than examples. Other CLI frameworks all seem to approach this differently.
- ivanjermakov 2y agoSkimming through this guide: https://dolthub.com/blog/2021-11-15-zsh-completions-with-subcommands/ https://dolthub.com/blog/2021-11-15-zsh-completions-with-sub... it seems to be a lot more convoluted than I thought. Really, every external CLI binary that supports completions has this autocomplete script? I thought zsh parsed man pages to get available options/subcommands.
- bbkane 2y agoIt seems like they all have DIFFERENT autocomplete scripts, some of which subshell out to the tool being completed to generate further completions.