Menu

#129 Add a user list to the autocompletion feature

v1.1.x
closed
None
v1.1.0
New Functionality
2017-02-14
2017-01-24
Erik Hänel
No

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.

Discussion

  • Erik Hänel

    Erik Hänel - 2017-01-24
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2017-01-29
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,9 @@
     The autocompletion feature currently supports only predefined values. Add a user list, which results from the document content as well.
    +
    +**Analysis:**
    +
    +**Implementation:**
    +
    +**Documentation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2017-01-31
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,11 @@
     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
    +~~~C
    +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:**
    
     
  • Erik Hänel

    Erik Hänel - 2017-01-31
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2017-01-31
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -8,7 +8,9 @@
     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:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2017-02-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -14,3 +14,4 @@
     Not needed. Functionality is self-explaining and in principle already described.
    
     **Tests:**
    +Functionality passed a durability test.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB