gokiburikin / nyanpals

Placeholder repo for the nyanpals chat system. For now being used as an issue tracker.
0 stars 0 forks source link

[Text Input] Pressing tab multiple times to auto-complete a username in the list should scroll through list of users #7

Open nyanpasudo opened 8 years ago

nyanpasudo commented 8 years ago

Scenario:

There are several users in the chat:

If the user enters "da" into the input box, and presses tab, it should autocomplete (either in alphabetical order, or by most frequently autocompleted by user) to a user. (Example: daniel would be the first autocomplete)

Pressing tab again would autocomplete to "dannyboy" and then once again to "dayday"

Once reaching the end of the list, it would cycle back to the first user.

nyanpasudo commented 8 years ago

Once user has pressed any key other than TAB, the chat should assume user is no longer "scrolling" through the user list, and should no longer try to scroll through users. (Even if the user presses tab again)

gokiburikin commented 8 years ago

Right now the implementation is not specifically a username autocomplete, but a dictionary score-based search autocomplete. The implementation of this feature would become "select next highest scoring entry" unless it is rewritten.