The autocompletion feature currently supports only predefined values. Add a user list, which results from the document content as well.
Analysis:
This can probably be done by intercepting the line
this->AutoCompShow(lenEntered, _syntax->getAutoCompList(GetTextRange(wordstartpos, currentPos).ToStdString()));
at _syntax... and include a function, which adds the relevant used words of the current file to the autocomp list returned from _syntax. The list for the current file can be generated either from a map containing all the words or by using the FindText() function of Scintilla with the match wordstart flag.
Implementation:
Functionality was implemented as proposed by the analysis. In addition the autocompletion list was added to all text files whereas the NumeRe syntax proposals are only available for scripts and procedures.
Documentation:
Not needed. Functionality is self-explaining and in principle already described.
Tests:
Functionality passed a durability test.
Anonymous
Diff:
Diff:
Diff:
Diff: