Can we please have one standard way to define shell completions, that is compatible with all shells?
I'm moving from zsh to nushell, and it's relatively new, and you have to configure completions by writing a lot of code, including a lot of files, it's a nightmare.
It's easier for older shells like zsh or fish only because other people already done it, and some packages include per-shell completions.
There is @carapace_sh which attempts to do the right thing, but having completions in the other place than actual app is not very good idea.
https://usage.jdx.dev/ is trying to do the same but differently, and it has a way for an app to provide a schema for completions. This is step in the right direction, but not many tools support this.
Has anyone tried to put this somehow on the shell level? E.q. app includes a file like `myapp.completions` , and shell have a module which reads the file and generates a list of completions based on user input.
The right way to do this, is probably by defining a standard cross-platform/cross-shell schema. And it can be read by the shell, or by the tool like carapace or usage...