Autocomplete - trigger on backspace

Hi, I would like to have my completion sources return appropriately when backspacing.

For example, if I start with something like:

JSON.pars

and I hit backspace until the period:

JSON.

Is it possible for me to show the completions then?

Thanks

Backspace should already leave existing completion dialogs open. To start a completion on backspace, you could bind Backspace to something like this (for example with extraKeys):

function openCompletion(cm) {
  setTimeout(function() {
    if (!cm.state.completionActive)
      cm.showHint({completeSingle: false});
    }, 100);
    return CodeMirror.Pass;
}