I found that the autocomplete function can only be triggered when a new word is added. Is there a way to trigger the autocomplete function when the word is deleted and the cursor moves? I want to match the text in {{ xxx }}, and a hint can also pop up when the cursor enters
The startCompletion
command will also trigger autocompletion (but ‘explicitly’, meaning it will also show options if there is no word before the cursor). I’m not aware of any editors that automatically open completion on backspace or on any cursor motion. With the default keybindings (enter to accept, arrows to move completions) this would be extremely annoying since those keys will constantly be hogged by the autocompletion dialog.