3 ms·
fish 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 everythin
by ridiculous_fish 11y ago
fish 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 ...