Add a new notification, SCN_AUTOCCOMPLETE, which is fired after a auto-completion is fully complete. Position and text would be filled in as in SCN_AUTOCSELECTION.
Also would be nice to fill in ch of notify structure with the selected fill up or tab key. Also this for SCN_AUTOCSELECTION.
It is not trivial to calculate how to correctly delete partially typed auto-complete entries in the case for the need of the auto-completed text to be inserted differently based, especially based on all possible scintilla options. I had to basically re-implement ScintillaBase::AutoCompleteCompleted and a few helpers with direct commands to get it to behave correctly, when really all I needed to do was mess with the character that was placed after the auto-complete text was inserted.
Log in to post a comment.