Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompletion - log user habits locally and increase weight for frequent items #60

Open
2 tasks
EirikBirkeland opened this issue Oct 3, 2018 · 0 comments

Comments

@EirikBirkeland
Copy link
Owner

EirikBirkeland commented Oct 3, 2018

Rationale

Sometimes I find myself always having to move up/down to choose the appropriate autocomplete option time after time within the same document. This is annoying!

  • Ephemerally store the user's Autocomplete selection for the duration of the session
  • Change the order next time the same word is looked up again according to the user's habits

TMP:

describe('Enhanced predictive typing ', () => {
  it ('should cache the user's action after a final selection is made', () => {
    expect(suggestionsArray).toEqual(['one', 'two', 'three']);
    user.select(wordsArray[2]);
  });
  it ('should retrieve the cache and list the higher-weight item first', () => {
    expect(suggestionsArray).toEqeual(['three', 'one', 'two']);
  }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant