Lurker News
What are you working on? Any new ideas that you're thinking about?

Comments (1,424) 746 threads

Show all comments

Showing thread 553 of 746

bbkane1 reply#
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.
ivanjermakov1 reply#
Skimming through this guide: 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#
It seems like they all have DIFFERENT autocomplete scripts, some of which subshell out to the tool being completed to generate further completions.