3 ms·
While this would be great, I doubt it will ever happen. I don't really see how this possible without support from each command being completed. And not every co
by michaelmior 10y ago
While this would be great, I doubt it will ever happen. I don't really see how this possible without support from each command being completed. And not every command is going to do this.
- joelthelion 10y agoMaybe machine learning could help?
- michaelmior 10y agoGoing through man pages would certainly help. Otherwise you're analyzing the source code of scripts or worse, binaries. I won't say it's impossible, but I'm not convinced the effort is worth it. That said, I think it could be made much easier to make completion scripts rather than all the shell-specific stuff that exists now.
- a3n 10y ago--help would be a good thing to learn from too. But again, that assumes that --help or even a man page was implemented.
- tedmiston 10y agoA simple structured list in config seems like a reasonable start. - git - blame - commit - log - ... We could generate this semi-automatically for a lot of commands with a little effort. Perhaps git wasn't the best example to demonstrate a simple one. For existing commands that don't get updated, one could just supply the list from a central repo, not unlike Homebrew Cask.