Skip to content

Alphabetized Autocomplete #188

@andrewtavis

Description

@andrewtavis

Terms

Description

This issue is to add an initial auto-suggest feature to Scribe, and is the first part of #3. Work for this will be done in relation to #187 for the Wikimania Hackathon.

This issue comprises:

  • Finding resources for a function to find the next words alphabetically
  • Figuring out which words should be suggested to the user
    • At the start, just nouns
  • Removing the command bar unless the keyboard is in command mode
    • Annotations need to show up after a user presses space still
    • The coloration likely needs to change to keyboardBgColor, as making it clear would prevent annotations from being presented
  • Fixing the coloration of characters on annotations to match the new background
  • Properly styling the Scribe key corners/shadow when the command bar is removed
  • Putting two lines between the command buttons to delineate them when they have no background (@andrewtavis)
    • Add the lines to the .xib file
    • Create functions that allow them to be added and removed
    • Removing the left line if an annotation of long enough length is being shown
      • This needs to be done in the function to show the lines
      • Checking the length of the text in the command bar is the likely method for this
  • Make the command buttons user interactable when an autocomplete would be possible
    • The buttons work now, and are conditionally deactivated if an annotation is happening based on the length of the annotation
  • The creation of a function to find the three next words in alphabetical order to the currently typed word in the proxy
  • Assigning those three words to the command buttons
  • Running the function and doing the assignment each time a key is pressed (within loadKeys())
  • Inserting the word on a button to the text field when a user presses an auto suggest button

Contribution

I'll be working on this with @SaurabhJamadagni :)

Metadata

Metadata

Labels

-next release-Included in the next releasefeatureNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions