Menu

#1444 Autocomplete the same prefix

Feature_Request
open
patch (7)
5
2013-02-16
2013-02-11
No

When I want to autocomplete a word and there are more options then Scintilla displays list with all possibilities. I have lots of autocomplete words with the same prefix, e.g. PhabricatorAudit ... (100s of other symbols) ... PhabricatorWorker. When I write "Pha" then I have two options: Select the right symbol from the very long list or finish writing Phabricator and then write the next letter to narrow the list.

The attached patch improves this by autocompleting the word with the common prefix and then displaying the list. This way, I can type "Pha", Ctrl+Space, "A", Enter and get PhabricatorAudit way faster. It works only with autocomplete.choose.single in SciTE.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2013-02-16

    Not sure this belongs in Scintilla as applications can fill in the initial shared substring if they wish. The advantage to leaving this up to the application is that the application can then choose when and whether to enable the behaviour.

    Its also somewhat unexpected so the user may continue typing the prefix after it has been automatically inserted. Do any other IDEs work like this?

    VC 2012 errors on the declaration of word - it has to be const since list is const.

     
  • Neil Hodgson

    Neil Hodgson - 2013-02-16
     

Log in to post a comment.