4 ms·
Somewhat related: can fish shell do something like this? https://github.com/hchbaw/auto-fu.zsh https://github.com/hchbaw/auto-fu.zsh On the fly display of all
by chenglou 11y ago
Somewhat related: can fish shell do something like this? https://github.com/hchbaw/auto-fu.zsh https://github.com/hchbaw/auto-fu.zsh
On the fly display of all the options. If so, to what extend? Some commands don't give autocomplete upon tab. Is there a way to fix that?
- ridiculous_fish 11y agofish displays one "suggestion" as you type, which can be a file, option, or history item. You can use tab to get a menu, similar to the demo. Showing everything as you type sounds neat, but in practice it's jarring to have your screen fill up the second you press a key. fish operates on the UI principle of progressive disclosure: be helpful but not overwhelming. That's why it only shows one. fish knows how to parse man pages to extract options, so fish can tab-complete options even for commands that don't have explicit completions. It's surprising that nobody else seems to have tried this.
- bucaran 11y agoThe relevant link is here (https://github.com/fish-shell/fish-shell/blob/master/share/tools/create_manpage_completions.py https://github.com/fish-shell/fish-shell/blob/master/share/t...) ridiculous_fish, we still use `complete` all over the place for completions don't we. In Fisherman there is a nice little AWK script, still far from perfect that attempts to do a similar thing, parsing a utility's usage help. usage: utility [...] -s --short Short option ...