by chubot · 6y ago · 0 comments
https://github.com/oilshell/oil/wiki/Shellac-Protocol-Propos...
but cut it out of the Oil project (for the forseeable future). Right now Oil takes the approach of running existing bash completion scripts, which solves the problem well enough (but leaves a few things to be desired)
If someone comes up with a spec that works in at least one other shell, and some code, I'll be happy to merge it into Oil.
Though, reading over this, it looks pretty early, and I don't think the "spec first" approach really works. That is, the spec should be derived from working code, and I believe you have to implement it in more than one shell to tell if it's feasible.
Some other links I collected:
So OpenAutoComplete is purely static then?
That makes it much less useful.
Static completion is nice to have for tools you only use from time to time, or when fishing for that argument name, but if you don't know the name of an argument etc you will often have to use `man` anyway.
The real benefit of completions are the dynamic ones, at least for me.
If such a spec does not support dynamic completion, a lot of tools will need to do their own thing anyway.
I realize that this makes it much more complex though.
More importantly, you should consider other metadata before you go to far; binaries could carry their own documentation, licensing, dependencies... What should be in and out of scope?