by brendanfalk · 5y ago · 0 comments
Fig's declarative schema makes building the completions for subcommands, options and arguments very easy. This means we can support much more powerful autocomplete for many more CLIs.
Fig's standard format also makes it possible to suggest shortcuts for standard workflows (similar to aliases but more visual).
Finally, zsh and fish have good support for traditional autocomplete, but bash does not. Fig works the same across all shells (even when in an SSH session or a docker container).
How is that a standard when you just came up with it? Any other existing autocompletion format is more standard than whatever you just released.
Agree RE bash but at some point doesn't one just use the tool with the featureset one wants?
It should be pretty easy to 'compile' a Fig completion spec down to zsh, fish, or bash. This is actually something I've been meaning to write!
This image may help clarify: https://fig.io/images/slideshow/screenshots/ssh.png
That said, it's pretty attractive because it's much harder to make a case to install fish on remote servers.
if I type 'sudo cp ' will it run 'sudo ls' to offer suggestions?
this...is not good. my terminal should not be executing code on my behalf on remote servers I've SSHed to.