Reference on autocompletion

@StefanKarpinski posted this in slack with the comment “… all Julia UIs should follow these rules”. I am reposting here for longevity. Rules for Autocomplete

some highlights

  • Exact matches always come first.
  • Prefix matches come next. If I type “Fr” I want “Fresno” not “San Francisco.”
  • Matches should be sorted alphabetically.
  • When one option is the prefix of another, put the shortest one first .
  • The user should never have to take extra steps to not use autocomplete.