EirikBirkeland / gttbooster

A Chrome extension for professional translators to enhance Google Translator Toolkit (2015-2018)
4 stars 2 forks source link

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

Open EirikBirkeland opened 6 years ago

EirikBirkeland commented 6 years ago

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!

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']);
  }
});