Open andychu opened 5 years ago
Similar to #320 , we should look at providing better hooks than bash does (once we have a real programming language)
This thread reminded me that we should sort flags by frequency if possible. (I think fish does that?)
So if you have 100 tar flags, when you do --<TAB>
, it should give you the most popular ones. You can get frequency from the user's history or even some "shared" history.
The growth of command-line options, 1979-Present (danluu.com)
zsh apparently does case insensitivity, spelling correction, etc. We might want options for those.
This list of rules is pretty good. At least, we should write down our own set of rules.
http://jeremymikkola.com/posts/2019_03_19_rules_for_autocomplete.html
https://news.ycombinator.com/item?id=19438826
It might be worthwhile to let users customize the candidate display order, but provide a good default.