sneakyness/AppApp — pull request #140 by jeremytregunna (2012-08-25 22:44:42+00:00)
Title: Feature/autocomplete

It's... AUTOCOMPLETE!

Allows you to autocomplete usernames or hashtags when composing a new status. It stores this information in Core Data, and indexes in the following ways:

1) When you compose a new status, any @ you complete, i.e., @ralf or hashtag, i.e, #AppApp and finish with a space will be indexed into Core Data.
2) When a user mentions you, and you have the app open, we'll index the senders username
3) When you view a user list (i.e., your followers or people you follow) when the cell shows up with their name, we'll index their username.

I'm open to any other ideas regarding autocomplete. The UI here is pretty rough, maybe @VinSpee can have a once over and give some suggestions on how it'd tie in nicely.

Presently the UI is implemented with a scrollview. This scrollview is initially hidden below the text view, and when you type @ or #, it will slide down and start displaying buttons which when tapped, will replace their title at the given selection you have selected (or cursor position) in the textview.

This request fixes #104.