Open calebdw opened 2 weeks ago
Hi Caleb,
Their is a script in the repo at ./misc/tc-generate.sh
that can generate shell completions
I'll check it out, thanks! However, most programs offer a completion
command that outputs the shell completion for you to redirect wherever you want:
b4 completion <shell>
The python library that b4 is using can support cli completion. When it was originally added it was decided not to have to avoid adding a new runtime dependency. I agree it would be nice to have, I manually install b4 from pypi which (as far as I know) can't include the completion scripts. See https://lore.kernel.org/tools/20240305-obedient-centipede-of-finesse-a35a86@lemur/
I installed b4 through pypi as well so I don't have access to the ./misc/tc-generate.sh
unless I clone the repo
I sent a patch to the mailing list that attempts to support PyPi installs with pip install b4[completion]
.
https://lore.kernel.org/tools/20241009-pypi-completion-v1-1-94f50a157c56@collins.com/T/#u
I added some comments
Hello!
I just came across this and I'm excited to try it out! However, one of the thinks that would be really useful is bash autocompletion for the various menu items.
Thanks!