|
|
|
|
|
by michael_fine
1869 days ago
|
|
While they exist, shell based autocomplete have always felt like a suboptimal solution we just accept out of historical happenstance. - You need to press tab to get any completion to display - You don't know what completion will appear when you press tab, or at most one completion displays - The completions are not at all aware of context, at best just doing some untyped fuzzy matching. Compare this to Fig, which at least seems to know what sorts of arguments each command accepts and displays a list of them - They only provide completion, not inline documentation, which is one of the big points of the article |
|
- You can get the completions to display as you type (see zsh-autosuggestions, zsh-autocomplete).
- Completions are completely aware of their context, probably more so than what fig can infer. You do need to actually load the completion functions of your binaries though, which are traditionally named ‘_command’ (so, an example would be ‘_git’).
- They can provide documentation; fzf-tab does so.