...with Backspace support...
I changed scite to constantly check if we typed an Autocomplete known verb. Im feeling quite good, because it wasnt to hard for me to understand the code and implement the small change. So in future, we only have to type the beginning of an API verb to display the list.
New is, that it reacts to [backspace], so choosing the most matching new entry, filtering the list to matching candidates -which is quite convinient. As always, pressing [tab] inserts the listentry and like before, if we press ctrl-Return, Scite brings up a list of words in the buffer which begin with the typed chars.
really cute now!
HAnd, Tho
PS: Also synced the Project Sources with current Scite 3.64.
--- a/src/3.6.4/scite/src/SciTEBase.cxx +++ b/src/3.6.4/scite/src/SciTEBase.cxx @@ -1674,7 +1674,7 @@ if (apis) { std::string words = GetNearestWords(root.c_str(), root.length(), calltipParametersStart.c_str(), autoCompleteIgnoreCase); - if (words.length()) { + if (words.length() and root.length()>0) { EliminateDuplicateWords(words); wEditor.Call(SCI_AUTOCSETSEPARATOR, ' '); wEditor.CallString(SCI_AUTOCSHOW, root.length(), words.c_str()); @@ -3973,6 +3973,7 @@ currentWordHighlight.textHasChanged = true; } //this will be called a lot, and usually means "typing". + StartAutoComplete(); EnableAMenuItem(IDM_UNDO, true); EnableAMenuItem(IDM_REDO, false); if (CurrentBuffer()->findMarks == Buffer::fmMarked) {