Skip to content

Add command entry autocomplete #299

@andrewtavis

Description

@andrewtavis

Terms

Description

Now that the data solution has been improved in #96, Scribe has dramatically more memory available to do some things that would have been difficult before. One great feature would be to add autocomplete to the command bar such that a user would be able to press to complete the rest of a word that's alphabetically the next word in the index column of the table being queried. Things to consider are:

  • We need to have the remaining text be greyed out to indicate that the autocomplete is possible
  • We cannot use the spacebar for this as there could be reflexive verbs in the future (to apply in German is sich bewerben) or small phrases
  • We need to figure out some kind of indicator to show that user that autocomplete is possible

With this in mind, to me the most obvious place for the user to click would be on the command bar itself. We could also show a similarly greyed out icon on the right side of the command bar to indicate that the bar can be clicked to enter the autocomplete text. The icon would only appear when a user begins typing in the command bar, and would disappear if they delete back to the prompt. A good option for an icon would be hand.tap from SF Symbols, which can be seen in the mockup below (note that the command bar cursor | would be between the entered and suggested text):

Screenshot_2023-04-30 00 15 40

Contribution

Happy to work on this myself or collaborate with someone on this :) I think this would be another really great feature to add!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions