oils-for-unix / oils

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
http://www.oilshell.org/
Other
2.82k stars 154 forks source link

completion candidates could be more sophisticated #265

Open andychu opened 5 years ago

andychu commented 5 years ago

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.

andychu commented 5 years ago

Similar to #320 , we should look at providing better hooks than bash does (once we have a real programming language)

andychu commented 4 years ago

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)